sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT draft_details FROM Document_Drafts WHERE document_id = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is draft detail of the document with id 7?It is not neccessary to use all the tables.
SELECT * FROM table_train_100 WHERE (systolic_blood_pressure_sbp < 90 OR systolic_blood_pressure_sbp > 160) OR (diastolic_blood_pressure_dbp > 100 OR diastolic_blood_pressure_dbp < 60)
CREATE TABLE INST, Here is a database schema( table schema);
systolic blood pressure > 160 or < 90 mmhg or diastolic blood pressure > 100 or < 60 mmhg at screening.It is not neccessary to use all the tables.
SELECT Year(s) won FROM table WHERE To par = 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the Year(s) won of the Player with a To par of 5?.It is not neccessary to use all the tables.
SELECT MIN(fa_cup_goals) FROM table_name_10 WHERE name = "dick taylor" AND league_goals < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many FA cup goals did dick taylor score in the year that he had 0 league goals?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = bristol rovers
CREATE TABLE INST, Here is a database schema( table schema);
What is the Away team at Bristol Rovers' Home game?.It is not neccessary to use all the tables.
SELECT game FROM table_name_71 WHERE developer_s_ = "rockstar games"
CREATE TABLE INST, Here is a database schema( table schema);
What is the game of developer Rockstar Games?It is not neccessary to use all the tables.
SELECT SUM(area_km_2) FROM table_name_70 WHERE pop_density_people_km_2 > 91 AND member_state = "italy" AND population_in_millions < 58.8
CREATE TABLE INST, Here is a database schema( table schema);
What is the area km2 of the area with a pop density people/km2 larger than 91 is a member state of Italy and had less than 58.8 population in millions?It is not neccessary to use all the tables.
SELECT Carrier, COUNT(Carrier) FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID GROUP BY Carrier ORDER BY Carrier
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of device shops, and what are the carriers that they carry devices in stock for?, could you sort in ascending by the x-axis?It is not neccessary to use all the tables.
SELECT country FROM table_name_71 WHERE player = "fred couples"
CREATE TABLE INST, Here is a database schema( table schema);
Where is Fred Couples from?It is not neccessary to use all the tables.
SELECT AVG Date FROM table WHERE Builder = alco schenectady AND Number > 835 AND Works number = 56566
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Builder of alco schenectady, and a Number larger than 835, and Works number of 56566?.It is not neccessary to use all the tables.
SELECT SUM(game) FROM table_name_63 WHERE november = 29
CREATE TABLE INST, Here is a database schema( table schema);
Which Game has a November of 29?It is not neccessary to use all the tables.
SELECT City / State FROM table WHERE Winner = rohan onslow AND Circuit = oran park raceway
CREATE TABLE INST, Here is a database schema( table schema);
What is City / State, when Winner is "Rohan Onslow", and when Circuit is "Oran Park Raceway"?.It is not neccessary to use all the tables.
SELECT others_percentage FROM table_13608101_1 WHERE parish = "Tangipahoa"
CREATE TABLE INST, Here is a database schema( table schema);
what's the others% with parbeingh being tangipahoaIt is not neccessary to use all the tables.
SELECT original_airdate FROM table_name_26 WHERE youtube_hero = "greg pattillo"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Original Airdate for the YouTube Hero greg pattillo?It is not neccessary to use all the tables.
SELECT "Rounds" FROM table_38941 WHERE "Team" = 'ducati marlboro team' AND "Rider" = 'mika kallio 1'
CREATE TABLE INST, Here is a database schema( table schema);
What is the rounds of rider Mika Kallio 1 of the Ducati Marlboro team?It is not neccessary to use all the tables.
SELECT season_no FROM table_21781578_2 WHERE directed_by = "John David Coles"
CREATE TABLE INST, Here is a database schema( table schema);
What was the season number episode directed by John David Coles?It is not neccessary to use all the tables.
SELECT FA Trophy FROM table WHERE Leading Scorer = lee gregory (8)
CREATE TABLE INST, Here is a database schema( table schema);
what is the fa trophy when the leading scorer is lee gregory (8)?.It is not neccessary to use all the tables.
SELECT location FROM table_name_12 WHERE fatalities = "unknown" AND aircraft = "ju-52"
CREATE TABLE INST, Here is a database schema( table schema);
In what location were the fatalities unknown for the Ju-52 aircraft?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE 2008 club = rahat
CREATE TABLE INST, Here is a database schema( table schema);
Who had rahat as their 2008 club?.It is not neccessary to use all the tables.
SELECT high_assists FROM table_23285761_11 WHERE date = "April 26"
CREATE TABLE INST, Here is a database schema( table schema);
Who has the high assists when April 26 is the date?It is not neccessary to use all the tables.
SELECT event FROM table_name_70 WHERE round = 1 AND res = "win" AND record = "15-4"
CREATE TABLE INST, Here is a database schema( table schema);
Which event was in round 1 resulted in a win and a record of 15-4?It is not neccessary to use all the tables.
SELECT height_in_ft FROM table_name_35 WHERE position = "guard" AND school_club_team_country = "north carolina-charlotte"
CREATE TABLE INST, Here is a database schema( table schema);
Name the height in feet for the guard from north carolina-charlotteIt is not neccessary to use all the tables.
SELECT COUNT("episode") FROM table_204_958 WHERE "average" >= 0.7
CREATE TABLE INST, Here is a database schema( table schema);
how many episodes had at least an average of 0.70 ?It is not neccessary to use all the tables.
SELECT AVG Population FROM table WHERE Area km 2 < 26.69 AND Official Name = rogersville
CREATE TABLE INST, Here is a database schema( table schema);
What is the average population vlue for an area smaller than 26.69 square km and has an official name of Rogersville?.It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Round 1 = 70 AND Money ($) > 500,000
CREATE TABLE INST, Here is a database schema( table schema);
Round 1 of 70, and a Money ($) larger than 500,000 has the highest year?.It is not neccessary to use all the tables.
SELECT "Mascot" FROM table_63312 WHERE "School" = 'hamilton community'
CREATE TABLE INST, Here is a database schema( table schema);
What is the mascot at Hamilton Community?It is not neccessary to use all the tables.
SELECT SUM Asian or Amerindian (%) FROM table WHERE State = sergipe AND Brown (%) > 61,3
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Asian or Amerindian (%), when State is Sergipe, and when Brown (%) is greater than 61,3?.It is not neccessary to use all the tables.
SELECT Event 2 FROM table WHERE Event 1 = Atlasphere
CREATE TABLE INST, Here is a database schema( table schema);
What was event 2 when event 1 was Atlasphere?.It is not neccessary to use all the tables.
SELECT Population FROM table WHERE Municipality = Sørvágur
CREATE TABLE INST, Here is a database schema( table schema);
Name the population for sørvágur.It is not neccessary to use all the tables.
SELECT MAX Micro (10ha) FROM table WHERE Big (>500ha) = 1080
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest micro when the big is 1080? .It is not neccessary to use all the tables.
SELECT score FROM table_name_25 WHERE loss = "coates (0–2)"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game that had a loss of Coates (0–2)?It is not neccessary to use all the tables.
SELECT COUNT Time FROM table WHERE Heat Rank = 1
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the total number of time for heat rank of 1.It is not neccessary to use all the tables.
SELECT MAX(crowd) FROM table_name_65 WHERE venue = "punt road oval"
CREATE TABLE INST, Here is a database schema( table schema);
What was the biggest crowd at punt road oval?It is not neccessary to use all the tables.
SELECT home_team FROM table_16388478_4 WHERE away_team = "Carlton"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team when the away team is Carlton?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_58 WHERE score < 68 AND country = "england"
CREATE TABLE INST, Here is a database schema( table schema);
What is Top Par when Score is less than 68 and when Country is England?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Year(s) won = 1993
CREATE TABLE INST, Here is a database schema( table schema);
Which player won in 1993?.It is not neccessary to use all the tables.
SELECT club FROM table_name_66 WHERE league_goals = "21"
CREATE TABLE INST, Here is a database schema( table schema);
Which Club has a League goals of 21?It is not neccessary to use all the tables.
SELECT AVG Rank FROM table WHERE Year = 1950
CREATE TABLE INST, Here is a database schema( table schema);
In 1950 what is the average rank?.It is not neccessary to use all the tables.
SELECT Paper Type FROM table WHERE Theme = University of Saskatchewan
CREATE TABLE INST, Here is a database schema( table schema);
What is the paper type of the University of Saskatchewan themed stamp?.It is not neccessary to use all the tables.
SELECT SUM("Pick") FROM table_49172 WHERE "Position" = 'defensive end' AND "Round" = '8'
CREATE TABLE INST, Here is a database schema( table schema);
What pick was used to select a Defensive End in round 8?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2164.0" AND procedures.icd9_code = "9465"
CREATE TABLE INST, Here is a database schema( table schema);
Provide me the number of patients with procedure icd9 code 9465 who died in or before 2164.It is not neccessary to use all the tables.
SELECT "Incumbent" FROM table_18169 WHERE "First elected" = '1969'
CREATE TABLE INST, Here is a database schema( table schema);
Who's the incumbent in the district that first elected in 1969?It is not neccessary to use all the tables.
SELECT Finished FROM table WHERE Famous for = singer in atomic kitten
CREATE TABLE INST, Here is a database schema( table schema);
What place did the singer in atomic kitten finish?.It is not neccessary to use all the tables.
SELECT series FROM table_name_86 WHERE date = "may 18"
CREATE TABLE INST, Here is a database schema( table schema);
Which Series are on may 18?It is not neccessary to use all the tables.
SELECT loss FROM table_name_83 WHERE date = "may 9"
CREATE TABLE INST, Here is a database schema( table schema);
Who did they lose to on may 9?It is not neccessary to use all the tables.
SELECT 3:00 pm FROM table WHERE 12:30 pm = port charles
CREATE TABLE INST, Here is a database schema( table schema);
What is on at 3:00pm if Port Charles is on at 12:30?.It is not neccessary to use all the tables.
SELECT COUNT(division) FROM table_name_7 WHERE team = "chongqing lifan" AND apps > 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Division(s) when Team is Chongqing Lifan and when Apps is greater than 9?It is not neccessary to use all the tables.
SELECT channel FROM table_name_41 WHERE opponent = "washington redskins"
CREATE TABLE INST, Here is a database schema( table schema);
Which Channel has an Opponent of washington redskins?It is not neccessary to use all the tables.
SELECT AVG Played FROM table WHERE Lost > 17 AND Drawn = 15 AND Goals Against < 75
CREATE TABLE INST, Here is a database schema( table schema);
How many played when lost is more than 17, drawn is 15 and goals against is less than 75?.It is not neccessary to use all the tables.
SELECT term_end FROM table_name_6 WHERE party = "kadima" AND term_start = "18 january 2006"
CREATE TABLE INST, Here is a database schema( table schema);
What is the end of the term for Kadima that started on 18 January 2006?It is not neccessary to use all the tables.
SELECT district_name FROM table_22665117_1 WHERE dist_id = 74907
CREATE TABLE INST, Here is a database schema( table schema);
If the district ID is 74907 what is the name of the district?It is not neccessary to use all the tables.
SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype
CREATE TABLE INST, Here is a database schema( table schema);
Find the average and maximum age for each type of pet.It is not neccessary to use all the tables.
SELECT Fname, COUNT(Fname) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM Has_amenity AS T3 JOIN Dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge') GROUP BY Fname ORDER BY COUNT(Fname)
CREATE TABLE INST, Here is a database schema( table schema);
Show the number of students who are living in a dorm with a TV Lounge and group by first name in a bar chart, and rank in ascending by the Y-axis.It is not neccessary to use all the tables.
SELECT viewers__millions_ FROM table_17525955_2 WHERE episode__number = 5
CREATE TABLE INST, Here is a database schema( table schema);
How many viewers did Episode #5 have?It is not neccessary to use all the tables.
SELECT SUM(drawn) FROM table_name_36 WHERE league_pos = "15th" AND lost > 17
CREATE TABLE INST, Here is a database schema( table schema);
What is the drawn result with a league position of 15th and a lost result that is more than 17?It is not neccessary to use all the tables.
SELECT Social Sec Leeds FROM table WHERE Fixtures Sec = n/a AND General Sec = n/a AND Season = 2005–2006
CREATE TABLE INST, Here is a database schema( table schema);
Name the Social Sec Leeds has Fixtures Sec of n/a, and a General Sec of n/a, and the Season of 2005–2006?.It is not neccessary to use all the tables.
SELECT Acquired FROM table WHERE Player = bruce graham
CREATE TABLE INST, Here is a database schema( table schema);
In what year was player Bruce Graham acquired?.It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_32 WHERE grid > 11 AND laps > 41 AND driver = "nick heidfeld"
CREATE TABLE INST, Here is a database schema( table schema);
What is the time/retired for a grid larger than 11 laps larger than 41 and nick heidfeld?It is not neccessary to use all the tables.
SELECT date FROM table_name_65 WHERE result = "*non-conference game. #rankings from ap poll ."
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date when the result is *non-conference game. #rankings from ap poll .?It is not neccessary to use all the tables.
SELECT TV FROM table WHERE Opponent = Minnesota Vikings
CREATE TABLE INST, Here is a database schema( table schema);
Which channel had the game against the Minnesota Vikings?.It is not neccessary to use all the tables.
SELECT MIN(first_elected) FROM table_1341453_22 WHERE district = "Maryland 2"
CREATE TABLE INST, Here is a database schema( table schema);
When did the elections take place in district Maryland 2?It is not neccessary to use all the tables.
SELECT MAX Number One(s) FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest overall number one(s)?.It is not neccessary to use all the tables.
SELECT name_athlete FROM table_name_97 WHERE semi = "1:43.79"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the athlete who had SEMI of 1:43.79?It is not neccessary to use all the tables.
SELECT date FROM table_name_46 WHERE score = "71-64"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT DATE HAD A SCORE OF 71-64?It is not neccessary to use all the tables.
SELECT score FROM table_name_62 WHERE attendance < 10 OFFSET 553
CREATE TABLE INST, Here is a database schema( table schema);
What score has an attendance less than 10553?It is not neccessary to use all the tables.
SELECT Subdivision name ( be ) (BGN/PCGN) FROM table WHERE Subdivision name ( ru ) (BGN/PCGN) = Grodnenskaya oblast'
CREATE TABLE INST, Here is a database schema( table schema);
What is the subdivision name (BE) where subdivision name (RU) (BGN) is Grodnenskaya Oblast'?.It is not neccessary to use all the tables.
SELECT League FROM table WHERE Avg. attendance † = 244
CREATE TABLE INST, Here is a database schema( table schema);
What league has an average attendance of 244?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Away team = south melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What was the Home team score for the team that played South Melbourne?.It is not neccessary to use all the tables.
SELECT air_dates FROM table_27487310_5 WHERE network = "ABS-CBN"
CREATE TABLE INST, Here is a database schema( table schema);
What are the air dates of the show in ABS-CBN?It is not neccessary to use all the tables.
SELECT tv_station FROM table_name_25 WHERE average_ratings = "14.7%"
CREATE TABLE INST, Here is a database schema( table schema);
What station has average ratings of 14.7%?It is not neccessary to use all the tables.
SELECT Speed FROM table WHERE Rank < 9 AND Team = kawasaki zx6 600cc
CREATE TABLE INST, Here is a database schema( table schema);
Which Speed has a Rank smaller than 9 in kawasaki zx6 600cc Team?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE High assists = Deron Williams (6)
CREATE TABLE INST, Here is a database schema( table schema);
What was the record at the game where Deron Williams (6) did the high assists?.It is not neccessary to use all the tables.
SELECT COUNT(location_attendance) FROM table_20010140_10 WHERE record = "15–10 (5–7)"
CREATE TABLE INST, Here is a database schema( table schema);
state the number of location attendance where record is 15–10 (5–7)It is not neccessary to use all the tables.
SELECT status FROM table_name_29 WHERE park = "six flags new england"
CREATE TABLE INST, Here is a database schema( table schema);
Name the status for six flags new englandIt is not neccessary to use all the tables.
SELECT us_hot_100 FROM table_name_29 WHERE year = 2002 AND album = "west coast bad boyz, vol. 3: poppin' collars"
CREATE TABLE INST, Here is a database schema( table schema);
What is the U.S. Hot 100 chart number of the single off of the 2002 album west coast bad boyz vol. 3: poppin' collars?It is not neccessary to use all the tables.
SELECT Leading Scorer FROM table WHERE Series = wnba finals
CREATE TABLE INST, Here is a database schema( table schema);
Who is the leading scorer of the wnba finals series?.It is not neccessary to use all the tables.
SELECT name FROM table_26916717_1 WHERE team_school = "California"
CREATE TABLE INST, Here is a database schema( table schema);
What player attended california university?It is not neccessary to use all the tables.
SELECT genre FROM table_name_92 WHERE english_title__chinese_title_ = "the romance of the white hair maiden 白髮魔女傳"
CREATE TABLE INST, Here is a database schema( table schema);
Which Genre has an English title (Chinese title) of the romance of the white hair maiden 白髮魔女傳?It is not neccessary to use all the tables.
SELECT location FROM table_name_24 WHERE opponent = "arturo segovia"
CREATE TABLE INST, Here is a database schema( table schema);
Where did arturo segovia compete?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Home team score = 8.14 (62)
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team score when the home team scored 8.14 (62)?.It is not neccessary to use all the tables.
SELECT MIN Renewable electricity w/o Hydro (GW•h) FROM table WHERE Renewable electricity (GW•h) = 5760
CREATE TABLE INST, Here is a database schema( table schema);
When renewable electricity is 5760 (gw×h) what is the minimum amount of renewable elecrrixity without hydrogen power?.It is not neccessary to use all the tables.
SELECT MAX("year") FROM table_203_300 WHERE "result" = 1
CREATE TABLE INST, Here is a database schema( table schema);
when was the last time she won first place ?It is not neccessary to use all the tables.
SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*) > 1
CREATE TABLE INST, Here is a database schema( table schema);
Show the carriers of devices in stock at more than one shop.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Visitor = california
CREATE TABLE INST, Here is a database schema( table schema);
What was the home who had California visiting?.It is not neccessary to use all the tables.
SELECT COUNT Team FROM table WHERE High rebounds = Channing Frye, Jason Richardson (8)
CREATE TABLE INST, Here is a database schema( table schema);
How many teams have channing frye, jason richardson (8) as high rebounds?.It is not neccessary to use all the tables.
SELECT tries_for FROM table_name_49 WHERE try_bonus = "5"
CREATE TABLE INST, Here is a database schema( table schema);
How many tries for did the team with a try bonus of 5 score?It is not neccessary to use all the tables.
SELECT HIRE_DATE, SALARY FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those employees who did not have any job in the past, visualize a line chart about the change of salary over hire_date , order by the x-axis from high to low please.It is not neccessary to use all the tables.
SELECT opposing_team FROM table_name_5 WHERE status = "second test"
CREATE TABLE INST, Here is a database schema( table schema);
What was the opposing team for the second test?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.age < "68"
CREATE TABLE INST, Here is a database schema( table schema);
find the number of emergency hospital admission patients who were less than 68 years of age.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_77 WHERE date = "october 28, 2001"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent on October 28 2001?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = rome
CREATE TABLE INST, Here is a database schema( table schema);
The venue of Rome has which date?.It is not neccessary to use all the tables.
SELECT SUM(swing_to_gain) FROM table_name_70 WHERE winning_party_2007 = "conservative" AND rank < 5
CREATE TABLE INST, Here is a database schema( table schema);
What's the sum of swing to gain with a winning party 2007 of Conservative with a rank smaller than 5?It is not neccessary to use all the tables.
SELECT gdp_per_capita__us$_ FROM table_name_77 WHERE population = "56,210,000"
CREATE TABLE INST, Here is a database schema( table schema);
What is the GDP of the nation with 56210000 people?It is not neccessary to use all the tables.
SELECT pba_team FROM table_name_61 WHERE college = "nu"
CREATE TABLE INST, Here is a database schema( table schema);
Which PBA team has a College of nu?It is not neccessary to use all the tables.
SELECT tournament_winner FROM table_22779004_1 WHERE conference = "Atlantic Coast conference"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the tournament winner in the Atlantic Coast Conference?It is not neccessary to use all the tables.
SELECT 2012 club FROM table WHERE Name = norbert hosnyánszky category:articles with hcards
CREATE TABLE INST, Here is a database schema( table schema);
Name the 012 club which has of norbert hosnyánszky category:articles with hcards?.It is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_name_48 WHERE studio = "vestron"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of ranks that had vestron as the studio?It is not neccessary to use all the tables.
SELECT score FROM table_name_32 WHERE champion = "masahiro kawamura"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of champion masahiro kawamura?It is not neccessary to use all the tables.
SELECT MAX Crowd FROM table WHERE Home team = hawthorn
CREATE TABLE INST, Here is a database schema( table schema);
What size was the biggest crowd that watched the home team Hawthorn play?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE 2012 = 15.0%
CREATE TABLE INST, Here is a database schema( table schema);
What score has 15.0% as the 2012?.It is not neccessary to use all the tables.