aherntech/sparc huggingface dataset:
Database: network_2
Question sequence:
Show all ages of people.
What is the average?
What is the maximum?
What is the name of the person with this age?
SQL query sequence:
SELECT age FROM person
SELECT avg(age) FROM person
SELECT max(age) FROM person
SELECT name FROM person WHERE age = (SELECT max(age) FROM person)
Final question: Who is the oldest person?
Final SQL: SELECT name FROM Person WHERE age  =  (SELECT max(age) FROM person)
Database: network_2
Question sequence:
How many distinct jobs do the people have?
What are these jobs?
List the names of all students.
What is the maximum age of students?
Print the name of the student with this age.
SQL query sequence:
SELECT count(DISTINCT job) FROM person
SELECT DISTINCT job FROM person
SELECT name FROM person WHERE job = 'student'
SELECT max(age) FROM person WHERE job = 'student'
SELECT name FROM Person WHERE job  =  'student' AND age  =  (SELECT max(age) FROM person WHERE job  =  'student' )
Final question: Who is the oldest person whose job is student?
Final SQL: SELECT name FROM Person WHERE job  =  'student' AND age  =  (SELECT max(age) FROM person WHERE job  =  'student' )
Database: network_2
Question sequence:
List all female names.
How about males?
What are the maximum ages for each gender?
Who is the youngest male?
SQL query sequence:
SELECT name FROM person WHERE gender = 'female'
SELECT name FROM person WHERE gender = 'male'
SELECT gender, max(age) FROM person GROUP BY gender
SELECT name FROM Person WHERE gender  =  'male' AND age  =  (SELECT min(age) FROM person WHERE gender  =  'male' )
Final question: Who is the youngest male?
Final SQL: SELECT name FROM Person WHERE gender  =  'male' AND age  =  (SELECT min(age) FROM person WHERE gender  =  'male' )
Database: network_2
Question sequence:
What is the last name alphabetically?
What is the occupation for Zach?
How old is the doctor named Zach?
SQL query sequence:
SELECT name FROM person ORDER BY name DESC LIMIT 1
SELECT job FROM person WHERE name = 'Zach'
SELECT age FROM Person WHERE job  =  'doctor' AND name  =  'Zach'
Final question: How old is the doctor named Zach?
Final SQL: SELECT age FROM Person WHERE job  =  'doctor' AND name  =  'Zach'
Database: network_2
Question sequence:
How many people are older than 20?
How about 30?
How many engineers are there?
How many people are both engineers and are over 30 years old?
SQL query sequence:
SELECT count(*) FROM person WHERE age > 20
SELECT count(*) FROM person WHERE age > 30
SELECT count(*) FROM person WHERE job = 'engineer'
SELECT count(*) FROM Person WHERE age  >  30 AND job  =  'engineer'
Final question: How many people whose age is greater 30 and job is engineer?
Final SQL: SELECT count(*) FROM Person WHERE age  >  30 AND job  =  'engineer'
Database: network_2
Question sequence:
What is the sum of ages for men?
What about the average?
What is the average for each job?
SQL query sequence:
SELECT sum(age) FROM person WHERE gender = 'male'
SELECT avg(age) FROM person WHERE gender = 'male'
SELECT avg(age) FROM person WHERE gender = 'male' GROUP BY job
Final question: What is average age of male for different job title?
Final SQL: SELECT avg(age) ,  job FROM Person WHERE gender  =  'male' GROUP BY job
Database: network_2
Question sequence:
How many different people are over 40?
How about under?
How many are male?
What is the count under 40 for each gender?
SQL query sequence:
SELECT count(DISTINCT name) FROM person WHERE age > 40
SELECT count(DISTINCT name) FROM person WHERE age < 40
SELECT count(DISTINCT name) FROM person WHERE age < 40 AND gender = 'male'
SELECT count(*) ,  gender FROM Person WHERE age < 40 GROUP BY gender
Final question: Find the number of people who is under 40 for each gender.
Final SQL: SELECT count(*) ,  gender FROM Person WHERE age  <  40 GROUP BY gender
Database: network_2
Question sequence:
What is the minimum age of engineers?
List all information for people older than this.
Just show their name.
Sort this group in order of ascending age.
SQL query sequence:
SELECT min(age) FROM person WHERE job = 'engineer'
SELECT * FROM person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer')
SELECT name FROM person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer')
SELECT name FROM Person WHERE age  >  (SELECT min(age) FROM person WHERE job  =  'engineer') ORDER BY age
Final question: Find the name of people whose age is greater than any engineer sorted by their age.
Final SQL: SELECT name FROM Person WHERE age  >  (SELECT min(age) FROM person WHERE job  =  'engineer') ORDER BY age
Database: network_2
Question sequence:
What is the maximum age of engineers?
List all information for people older than this.
Where are they all from?
How many are there in total?
SQL query sequence:
SELECT max(age) FROM person WHERE job = 'engineer'
SELECT * FROM person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer')
SELECT city FROM person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer')
SELECT count(*) FROM person WHERE age > (SELECT max(age) FROM person WHERE job = 'engineer')
Final question: Find the number of people whose age is greater than all engineers.
Final SQL: SELECT count(*) FROM Person WHERE age  >  (SELECT max(age) FROM person WHERE job  =  'engineer')
Database: network_2
Question sequence:
Show all names of the men.
Order them by descending age.
Reverse the oder.
Also show the ages.
SQL query sequence:
SELECT name FROM person WHERE gender = 'male'
SELECT name FROM person WHERE gender = 'male' ORDER BY age DESC
SELECT name FROM person WHERE gender = 'male' ORDER BY age
SELECT name, age FROM person WHERE gender = 'male' ORDER BY age
Final question: Find the name and age of all males in order of their age.
Final SQL: SELECT name, age FROM Person WHERE gender  =  'male' ORDER BY age
Database: network_2
Question sequence:
Show name and age of the people who are friends with Dan.
How about the friends of Alice?
Show the union of the sets.
How about the intersections?
SQL query sequence:
SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan'
SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Alice'
SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' UNION SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Alice'
SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' INTERSECT SELECT T1.name ,   T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Alice'
Final question: Find the name and age of the person who is a friend of both Dan and Alice.
Final SQL: SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' INTERSECT SELECT T1.name ,   T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Alice'
Database: network_2
Question sequence:
How many people are friends with Dan?
How about for Alice?
Show the name and age of poeple who are friends with either.
SQL query sequence:
SELECT count(*) FROM personfriend WHERE friend = 'Dan'
SELECT count(*) FROM personfriend WHERE friend = 'Alice'
SELECT DISTINCT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' OR T2.friend  =  'Alice'
Final question: Find the name and age of the person who is a friend of Dan or Alice.
Final SQL: SELECT DISTINCT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' OR T2.friend  =  'Alice'
Database: network_2
Question sequence:
Show how many friends each person in the set has.
Who has the most friends?
Who is friends with someone who is above 40?
Who among them is also friends with someone who is under 30?
SQL query sequence:
SELECT name, count(*) FROM personfriend GROUP BY name
SELECT name FROM personfriend GROUP BY name ORDER BY count(*) DESC LIMIT 1
SELECT t1.name FROM person AS t1 JOIN personfriend as t2 ON t1.name = t2.name WHERE t2.friend in (SELECT name FROM person WHERE age > 40)
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)
Final question: Find the name of the person who has friends with age above 40 and under age 30?
Final SQL: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)
Database: network_2
Question sequence:
Who has exactly 1 friend?
What about more than 1?
Who has a friend who is at least 40 years old?
Who among them do not also have a friend under 30?
SQL query sequence:
SELECT name FROM personfriend GROUP BY name HAVING count(*) = 1
SELECT name FROM personfriend GROUP BY name HAVING count(*) > 1
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40)
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)
Final question: Find the name of the person who has friends with age above 40 but not under age 30?
Final SQL: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)
Database: network_2
Question sequence:
Show all student names.
How many are there?
Show all people friends with students.
Show all people except these.
SQL query sequence:
SELECT name FROM person WHERE job = 'student'
SELECT count(*) FROM person WHERE job = 'student'
SELECT t2.name FROM person AS t1 JOIN personfriend AS t2 ON t1.name = t2.friend WHERE t1.name = 'student'
SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.job  =  'student'
Final question: Find the name of the person who has no student friends.
Final SQL: SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.job  =  'student'
Database: network_2
Question sequence:
Who has the longest-running friend?
Who has more than 1 friend?
Who has no friends?
Who has exactly 1?
SQL query sequence:
SELECT name FROM personfriend ORDER BY year DESC LIMIT 1
SELECT name FROM personfriend GROUP BY name HAVING count(*) > 1
SELECT name FROM person WHERE name NOT IN (SELECT name from personfriend)
SELECT name FROM PersonFriend GROUP BY name HAVING count(*)  =  1
Final question: Find the person who has exactly one friend.
Final SQL: SELECT name FROM PersonFriend GROUP BY name HAVING count(*)  =  1
Database: network_2
Question sequence:
How many people does Bob consider a friend?
How long have they been friends?
Only show the name.
SQL query sequence:
SELECT count(*) FROM personfriend WHERE name = 'Bob'
SELECT friend, year FROM personfriend WHERE name = 'Bob'
SELECT friend FROM PersonFriend WHERE name  =  'Bob'
Final question: Who are the friends of Bob?
Final SQL: SELECT friend FROM PersonFriend WHERE name  =  'Bob'
Database: network_2
Question sequence:
How many friendships are there?
How many distinct people consider Bob to be their friend?
Who has considered him a friend for the shortest amount of time?
Show the names of everyone who thinks he is their friend.
SQL query sequence:
SELECT count(*) FROM personfriend
SELECT count(DISTINCT name) FROM personfriend WHERE friend = 'Bob'
SELECT name FROM personfriend WHERE friend = 'Bob' ORDER BY year
SELECT name FROM PersonFriend WHERE friend  =  'Bob'
Final question: Find the name of persons who are friends with Bob.
Final SQL: SELECT name FROM PersonFriend WHERE friend  =  'Bob'
Database: network_2
Question sequence:
Who does Zach consider to be his friend?
How about the other way around?
Find the names of those among them who are male.
And female?
SQL query sequence:
SELECT friend FROM personfriend WHERE name = 'Zach'
SELECT name FROM personfriend WHERE friend = 'Zach'
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Zach' AND T1.gender  =  'male'
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Zach' AND T1.gender  =  'female'
Final question: Find the names of females who are friends with Zach
Final SQL: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Zach' AND T1.gender  =  'female'
Database: network_2
Question sequence:
Who considers Alice to be their friend?
How about the other way around?
Find the names of those among them who are male.
And female?
SQL query sequence:
SELECT name FROM personfriend WHERE friend = 'Alice'
SELECT friend FROM personfriend WHERE name = 'Alice'
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'male'
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'female'
Final question: Find the female friends of Alice.
Final SQL: SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'female'
Database: network_2
Question sequence:
How many people are a friend of Alice?
How many people are not a friend of Alice?
Who among the friends of Alice is male?
Only show those who are also a doctor?
SQL query sequence:
SELECT count(*) FROM personfriend WHERE name = 'Alice'
SELECT count(*) FROM person WHERE name NOT IN (SELECT friend FROM personfriend WHERE name = 'Alice')
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'male'
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'male' AND T1.job  =  'doctor'
Final question: Find the male friend of Alice whose job is a doctor?
Final SQL: SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'male' AND T1.job  =  'doctor'
Database: network_2
Question sequence:
Who is from Chicago?
How about New York City?
How many are there?
Who is friends with these people?
SQL query sequence:
SELECT name FROM person WHERE city = 'chicago'
SELECT name FROM person WHERE city = 'new york city'
SELECT count(*) FROM person WHERE city = 'new york city'
SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.city  =  'new york city'
Final question: Who has a friend that is from new york city?
Final SQL: SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.city  =  'new york city'
Database: network_2
Question sequence:
What is the minimum age?
Who has it?
What is the average age?
Who is younger than this?
Who calls these people friends?
SQL query sequence:
SELECT min(age) FROM person
SELECT name FROM person WHERE age = (SELECT min(age) FROM person)
SELECT avg(age) FROM person
SELECT name FROM person WHERE age < (SELECT avg(age) FROM person)
SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  <  (SELECT avg(age) FROM person)
Final question: Who has friends that are younger than the average age?
Final SQL: SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  <  (SELECT avg(age) FROM person)
Database: network_2
Question sequence:
How many people are there?
How many are younger than the average age?
What about older?
Who is friends with these people? Show their names and ages.
SQL query sequence:
SELECT count(*) FROM person
SELECT count(*) FROM person WHERE age < (SELECT avg(age) FROM person)
SELECT count(*) FROM person WHERE age > (SELECT avg(age) FROM person)
SELECT DISTINCT T2.name ,  T2.friend ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  >  (SELECT avg(age) FROM person)
Final question: Who has friends that are older than the average age? Print their friends and their ages as well
Final SQL: SELECT DISTINCT T2.name ,  T2.friend ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  >  (SELECT avg(age) FROM person)
Database: network_2
Question sequence:
How many people is Zach friends with?
Who are they?
Also show how long they have been freinds.
Show the name of the person who has been freinds with him the longest.
SQL query sequence:
SELECT count(*) FROM personfriend WHERE name = 'Zach'
SELECT name FROM personfriend WHERE name = 'Zach'
SELECT name, year FROM personfriend WHERE name = 'Zach'
SELECT friend FROM PersonFriend WHERE name =  'Zach' AND YEAR  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')
Final question: Who is the friend of Zach with longest year relationship?
Final SQL: SELECT friend FROM PersonFriend WHERE name =  'Zach' AND YEAR  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')
Database: network_2
Question sequence:
Who has the shortest relationship among the people Zach is friends with?
How about the longest?
Also show how long have they been freinds.
How old are they?
SQL query sequence:
SELECT name FROM personfriend WHERE name = 'Zach' ORDER BY year LIMIT 1
SELECT name FROM personfriend WHERE name = 'Zach' ORDER BY year DESC LIMIT 1
SELECT name, year FROM personfriend WHERE name = 'Zach' ORDER BY year DESC LIMIT 1
SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name =  'Zach' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')
Final question: What is the age of the friend of Zach with longest year relationship?
Final SQL: SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name =  'Zach' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')
Database: network_2
Question sequence:
What is the length of the shortest friendship?
WHat is the minimum among friendships with Alice?
What is the name of the person who has held this friendship?
SQL query sequence:
SELECT min(year) FROM personfriend
SELECT min(year) FROM personfriend WHERE friend = 'Alice'
SELECT name FROM PersonFriend WHERE friend =  'Alice' AND YEAR  =  (SELECT min(YEAR) FROM PersonFriend WHERE friend =  'Alice')
Final question: Find the name of persons who are friends with Alice for the shortest years.
Final SQL: SELECT name FROM PersonFriend WHERE friend =  'Alice' AND YEAR  =  (SELECT min(YEAR) FROM PersonFriend WHERE friend =  'Alice')
Database: network_2
Question sequence:
What is the maximum length of friendships with Alice?
Who holds a relationship of that length?
Also show age and job title.
SQL query sequence:
SELECT max(year) FROM personfriend WHERE friend = 'Alice'
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend =  'Alice' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE friend =  'Alice')
SELECT T1.name ,  T1.age ,  T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend =  'Alice' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE friend =  'Alice')
Final question: Find the name, age, and job title of persons who are friends with Alice for the longest years.
Final SQL: SELECT T1.name ,  T1.age ,  T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend =  'Alice' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE friend =  'Alice')
Database: network_2
Question sequence:
How many people are there in total?
How many people are in the friendship database?
Who is not in it?
SQL query sequence:
SELECT count(*) FROM person
SELECT count(DISTINCT name) FROM personfriend
SELECT name FROM person EXCEPT SELECT name FROM personfriend
Final question: Who is the person that has no friend?
Final SQL: SELECT name FROM person EXCEPT SELECT name FROM PersonFriend
Database: network_2
Question sequence:
What is the average age of all people?
What is the average age of the friends?
Show the average friend age for each person.
Who has the highest?
SQL query sequence:
SELECT avg(age) FROM person
SELECT avg(t1.age) FROM person AS t1 JOIN personfriend AS t2 ON t1.name = t2.friend
SELECT T2.name ,  avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend GROUP BY T2.name
SELECT T2.name ,  avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1
Final question: Which person whose friends have the oldest average age?
Final SQL: SELECT T2.name ,  avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1
Database: network_2
Question sequence:
Show all cities alphabetically.
How many people live in Austin?
Who is friends with them?
How many people are not friends with them?
SQL query sequence:
SELECT city FROM person ORDER BY city
SELECT count(*) FROM person WHERE city = 'austin'
SELECT name FROM personfriend WHERE friend IN (SELECT name FROM person WHERE city = 'austin')
SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city  =  'Austin')
Final question: What is the total number of people who has no friend living in the city of Austin.
Final SQL: SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city  =  'Austin')
Database: browser_web
Question sequence:
What are the names and market shares of browsers?
What is the name of the browser with the maximum market share?
What is the maximum, minimum and average market share of the listed browsers?
SQL query sequence:
SELECT name, market_share from browser
SELECT name from browser ORDER by market_share DESC LIMIT 1
SELECT max(market_share) ,  min(market_share) ,  avg(market_share) FROM browser
Final question: What is the maximum, minimum and average market share of the listed browsers?
Final SQL: SELECT max(market_share) ,  min(market_share) ,  avg(market_share) FROM browser
Database: browser_web
Question sequence:
Which browsers are compatible with CProxy?
Which of those became compatible after year 1998?
SQL query sequence:
SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id  =  T3.id WHERE T3.name  =  'CProxy'
SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id  =  T3.id WHERE T3.name  =  'CProxy' AND T2.compatible_since_year  >  1998
Final question: What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?
Final SQL: SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id  =  T3.id WHERE T3.name  =  'CProxy' AND T2.compatible_since_year  >  1998