sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT Air Date FROM table WHERE Viewers (m) = 1.82
CREATE TABLE INST, Here is a database schema( table schema);
What's the total number of episodes whose original airings were viewed by 1.82 million viewers?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Result = 4-0
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score when the result was 4-0?.It is not neccessary to use all the tables.
SELECT COUNT Avg. Start FROM table WHERE Position = 59th
CREATE TABLE INST, Here is a database schema( table schema);
How many years did he finish in 59th?.It is not neccessary to use all the tables.
SELECT outcome FROM table_name_72 WHERE partner = "jordan kerr" AND date = "11 october 2009"
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome on 11 October 2009 when his partner was Jordan Kerr?It is not neccessary to use all the tables.
SELECT score FROM table_name_56 WHERE opponent_in_the_final = "divij sharan"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game against Divij Sharan?It is not neccessary to use all the tables.
SELECT Finalist FROM table WHERE Surface = clay AND Semifinalists = yevgeny kafelnikov juan carlos ferrero (2)
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Finalist, when the Surface is Clay, and when the Semifinalist is Yevgeny Kafelnikov Juan Carlos Ferrero (2)?.It is not neccessary to use all the tables.
SELECT total FROM table_name_33 WHERE player = "tony jacklin"
CREATE TABLE INST, Here is a database schema( table schema);
What is Tony Jacklin's total?It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE District = Georgia 2
CREATE TABLE INST, Here is a database schema( table schema);
Who was the incumbent of district Georgia 2?.It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_8 WHERE november = 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the average points on November 6?It is not neccessary to use all the tables.
SELECT Int% FROM table WHERE RAvg = 2.8
CREATE TABLE INST, Here is a database schema( table schema);
What is the int percentage that has Ravg of 2.8?.It is not neccessary to use all the tables.
SELECT Metric value FROM table WHERE Russian = че́тверть
CREATE TABLE INST, Here is a database schema( table schema);
What is the Metric value of Russian че́тверть?.It is not neccessary to use all the tables.
SELECT COUNT(matches) FROM table_name_94 WHERE rank = 2
CREATE TABLE INST, Here is a database schema( table schema);
Which Matches have a Rank of 2?It is not neccessary to use all the tables.
SELECT Fastest Lap FROM table WHERE Name = stoh's 200
CREATE TABLE INST, Here is a database schema( table schema);
What time was the fastest lap during Stoh's 200 in 1982?.It is not neccessary to use all the tables.
SELECT COUNT(total_passengers) FROM table_name_28 WHERE annual_change = "28.8%" AND rank < 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Total Passengers when the annual change is 28.8% and the rank is less than 8?It is not neccessary to use all the tables.
SELECT High points FROM table WHERE Team = La Salle
CREATE TABLE INST, Here is a database schema( table schema);
When la salle is the team who has the highest amount of points?.It is not neccessary to use all the tables.
SELECT "Goals/Game Ratio" FROM table_41629 WHERE "Goals" < '201' AND "Appearances" < '170'
CREATE TABLE INST, Here is a database schema( table schema);
Which goals/game ratio has fewer than 201 goals and fewer than 170 appearances?It is not neccessary to use all the tables.
SELECT market_rank_ & _city_of_license__market FROM table_22329326_1 WHERE station = "KABC-TV"
CREATE TABLE INST, Here is a database schema( table schema);
What market rank and city had the station KABC-TV?It is not neccessary to use all the tables.
SELECT year_active FROM table_name_83 WHERE role = "rachel"
CREATE TABLE INST, Here is a database schema( table schema);
What year was the role of Rachel active in TV?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Score = 6–4, 7–5
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date of the Match with a Score of 6–4, 7–5?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND prescriptions.drug = "Influenza Virus Vaccine"
CREATE TABLE INST, Here is a database schema( table schema);
How many of the hispanic or latino/puertorican patients had an influenza virus vaccine?It is not neccessary to use all the tables.
SELECT Cross-code debut FROM table WHERE Year > 1958 AND Player = dick thornett
CREATE TABLE INST, Here is a database schema( table schema);
What is the cross-code debut later than 1958 for Dick Thornett?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = dec 10
CREATE TABLE INST, Here is a database schema( table schema);
Which Record is dated Dec 10?.It is not neccessary to use all the tables.
SELECT collaboration FROM table_name_5 WHERE indication = "non-hodgkin lymphoma"
CREATE TABLE INST, Here is a database schema( table schema);
What company collaborated with non-hodgkin lymphoma?It is not neccessary to use all the tables.
SELECT SUM(played) FROM table_name_64 WHERE goals_against = 45 AND goals_for < 65
CREATE TABLE INST, Here is a database schema( table schema);
How much Played has Goals Against of 45 and Goals For smaller than 65?It is not neccessary to use all the tables.
SELECT airport FROM table_13836704_9 WHERE _percentage_change_2005_2006 = "13.0%"
CREATE TABLE INST, Here is a database schema( table schema);
what's the airport with % change 2005/2006 being 13.0%It is not neccessary to use all the tables.
SELECT high_assists FROM table_27700375_6 WHERE location_attendance = "Quicken Loans Arena 20,562"
CREATE TABLE INST, Here is a database schema( table schema);
If the location attendance was Quicken Loans Arena 20562 who had the High Assists?It is not neccessary to use all the tables.
SELECT Model FROM table WHERE Comments = curved daggerboards. design: morelli und melvin
CREATE TABLE INST, Here is a database schema( table schema);
Which Model has Comments of curved daggerboards. design: morelli und melvin?.It is not neccessary to use all the tables.
SELECT HDTV FROM table WHERE Television service = PRIVÈ
CREATE TABLE INST, Here is a database schema( table schema);
Was there HDTV when the service was Privè?.It is not neccessary to use all the tables.
SELECT MIN Touchdowns FROM table WHERE Position = Fullback
CREATE TABLE INST, Here is a database schema( table schema);
How many touchdowns did the fullback score?.It is not neccessary to use all the tables.
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-59454') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1) AND intakeoutput.celllabel = 'intake (ml)-gastrostomy/enterostomy gastrostomy 16 fr. luq' AND intakeoutput.cellpath LIKE '%intake%'
CREATE TABLE INST, Here is a database schema( table schema);
what is the total intake (ml)-gastrostomy/enterostomy gastrostomy 16 fr. luq dose that on the last icu visit patient 017-59454 has received?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE NHL team = Toronto Maple Leafs
CREATE TABLE INST, Here is a database schema( table schema);
What position did the draft pick for Toronto Maple Leafs play?.It is not neccessary to use all the tables.
SELECT AVG Goals for FROM table WHERE Goal Difference = 8 AND Losses < 12
CREATE TABLE INST, Here is a database schema( table schema);
What is the average amount of goals that have a goal difference or 8 and the losses are smaller than 12?.It is not neccessary to use all the tables.
SELECT "Name" FROM table_49363 WHERE "Title" = 'queen regnant'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the queen regnant?It is not neccessary to use all the tables.
SELECT Surname FROM table WHERE First = michael
CREATE TABLE INST, Here is a database schema( table schema);
What is Michael's surname?.It is not neccessary to use all the tables.
SELECT visitor FROM table_name_7 WHERE home = "nets"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the Visitor when the Nets were the Home team?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Year = 2000
CREATE TABLE INST, Here is a database schema( table schema);
What's the Winner in the Year of 2000?.It is not neccessary to use all the tables.
SELECT player FROM table_name_27 WHERE to_par = "–1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the player that has a To par of –1?It is not neccessary to use all the tables.
SELECT young_rider_classification FROM table_29332810_14 WHERE aggressive_rider = "Luke Durbridge"
CREATE TABLE INST, Here is a database schema( table schema);
Where Luke Durbridge is the aggressive rider who is listed as the young rider classification?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, airport_service AS AIRPORT_SERVICE_3, city AS CITY_0, city AS CITY_1, city AS CITY_2, city AS CITY_3, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ((((CITY_3.city_code = AIRPORT_SERVICE_3.city_code AND CITY_3.city_name = 'PITTSBURGH' AND DATE_DAY_1.day_number = 27 AND DATE_DAY_1.month_number = 8 AND DATE_DAY_1.year = 1991 AND DAYS_1.day_name = DATE_DAY_1.day_name AND fare_basis.basis_days = DAYS_1.days_code AND fare.fare_basis_code = fare_basis.fare_basis_code AND fare.to_airport = AIRPORT_SERVICE_3.airport_code) AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'SAN FRANCISCO' AND fare.from_airport = AIRPORT_SERVICE_2.airport_code) AND DATE_DAY_0.day_number = 27 AND DATE_DAY_0.month_number = 8 AND DATE_DAY_0.year = 1991 AND DAYS_0.day_name = DATE_DAY_0.day_name AND fare.one_direction_cost = (SELECT MIN(FAREalias1.one_direction_cost) FROM airport_service AS AIRPORT_SERVICEalias4, airport_service AS AIRPORT_SERVICEalias5, city AS CITYalias4, city AS CITYalias5, date_day AS DATE_DAYalias2, days AS DAYSalias2, fare AS FAREalias1, fare_basis AS FARE_BASISalias1 WHERE (CITYalias5.city_code = AIRPORT_SERVICEalias5.city_code AND CITYalias5.city_name = 'PITTSBURGH' AND DATE_DAYalias2.day_number = 27 AND DATE_DAYalias2.month_number = 8 AND DATE_DAYalias2.year = 1991 AND DAYSalias2.day_name = DATE_DAYalias2.day_name AND FARE_BASISalias1.basis_days = DAYSalias2.days_code AND FAREalias1.fare_basis_code = FARE_BASISalias1.fare_basis_code AND FAREalias1.to_airport = AIRPORT_SERVICEalias5.airport_code) AND CITYalias4.city_code = AIRPORT_SERVICEalias4.city_code AND CITYalias4.city_name = 'SAN FRANCISCO' AND FAREalias1.from_airport = AIRPORT_SERVICEalias4.airport_code) AND flight_fare.fare_id = fare.fare_id AND flight.flight_days = DAYS_0.days_code AND flight.flight_id = flight_fare.flight_id) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
CREATE TABLE INST, Here is a database schema( table schema);
what is the cheapest flight from SAN FRANCISCO to PITTSBURGH on sundayIt is not neccessary to use all the tables.
SELECT MAX("Vertices") FROM table_37953 WHERE "Dual Archimedean solid" = 'truncated dodecahedron'
CREATE TABLE INST, Here is a database schema( table schema);
Which Vertices have a Dual Archimedean solid of truncated dodecahedron?It is not neccessary to use all the tables.
SELECT School FROM table WHERE Season Outcome = loss in first round of div. i playoffs
CREATE TABLE INST, Here is a database schema( table schema);
Name the school for Season Outcome of loss in first round of div. i playoffs.It is not neccessary to use all the tables.
SELECT MIN(laps) FROM table_name_20 WHERE time_retired = "engine" AND grid > 8 AND driver = "george eaton"
CREATE TABLE INST, Here is a database schema( table schema);
What's the least amount of laps that George Eaton completed that has a time/retired engine and a grid larger than 8?It is not neccessary to use all the tables.
SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of the room with the maximum occupancy.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Opponent = white sox AND Record = 18-13
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the opponent the White Sox and the record 18-13?.It is not neccessary to use all the tables.
SELECT COUNT Median monthly per capita / labour force income (HKD) FROM table WHERE Population (2006_est.) = 365540
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of median income for population 2006 for 365540.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 62983) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-3 year')
CREATE TABLE INST, Here is a database schema( table schema);
count the number of drugs until 3 years ago patient 62983 was prescribed.It is not neccessary to use all the tables.
SELECT COUNT Goals FROM table WHERE Current Club = chievo AND Debut Year < 2002
CREATE TABLE INST, Here is a database schema( table schema);
How many goals were achieved when Chievo was the club and the debut year was before 2002?.It is not neccessary to use all the tables.
SELECT home_venue FROM table_name_63 WHERE state = "goa" AND city = "salcette"
CREATE TABLE INST, Here is a database schema( table schema);
Which team plays in Goa Salcette?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = hawthorn
CREATE TABLE INST, Here is a database schema( table schema);
What team is travelling to play Hawthorn?.It is not neccessary to use all the tables.
SELECT team FROM table_23274514_4 WHERE record = "2-5"
CREATE TABLE INST, Here is a database schema( table schema);
What team did the Wizards play against when their record was 2-5?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Type of game = friendly AND Opponent = sweden
CREATE TABLE INST, Here is a database schema( table schema);
What date had an opponent of Sweden and a friendly type game?.It is not neccessary to use all the tables.
SELECT airport FROM table_name_30 WHERE city = "new york"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Airport for New York City?It is not neccessary to use all the tables.
SELECT injured FROM table_name_21 WHERE country = "afghanistan"
CREATE TABLE INST, Here is a database schema( table schema);
What is Injured when Country is "Afghanistan"?It is not neccessary to use all the tables.
SELECT pick__number FROM table_21321804_1 WHERE player = "Wes Lysack"
CREATE TABLE INST, Here is a database schema( table schema);
What is the pick # for player wes lysack?It is not neccessary to use all the tables.
SELECT best_female_artist FROM table_22546460_4 WHERE best_male_lyricist = "Best R&B Contributor"
CREATE TABLE INST, Here is a database schema( table schema);
Who won the Best Female Artist where Best R&B Contributor won the Best Male Lyricist?It is not neccessary to use all the tables.
SELECT Date of Birth (Age) FROM table WHERE Player = kameli ratuvou
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of birth of Kameli Ratuvou?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Week = 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date of Week 5?.It is not neccessary to use all the tables.
SELECT COUNT(na__350_) FROM table_13663434_1 WHERE title_and_source = "Bokumo Sekai wo Sukuitai: Battle Tournament"
CREATE TABLE INST, Here is a database schema( table schema);
how many na -350- with title and source being bokumo sekai wo sukuitai: battle tournamentIt is not neccessary to use all the tables.
SELECT New entries this round FROM table WHERE Winners from previous round = 16
CREATE TABLE INST, Here is a database schema( table schema);
How many new entries started in the round where winners from the previous round is 16?.It is not neccessary to use all the tables.
SELECT score FROM table_name_2 WHERE opponent = "philadelphia 76ers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score of the game against Philadelphia 76ers?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND fare_basis.class_type = 'COACH' AND fare.fare_basis_code = fare_basis.fare_basis_code AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND NOT flight.departure_time BETWEEN 601 AND 1759
CREATE TABLE INST, Here is a database schema( table schema);
what is the COACH economy class night service from BOSTON to SAN FRANCISCOIt is not neccessary to use all the tables.
SELECT 2014 FROM table WHERE 2003– 04 = did not participate AND 2005 = did not participate
CREATE TABLE INST, Here is a database schema( table schema);
Name the 2014 which has a 2003-04 of did not participate and a 2005 of did not participate.It is not neccessary to use all the tables.
SELECT position FROM table_name_72 WHERE nationality = "england" AND goals = "62"
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the player from England with 62 goals?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = celestino tugot
CREATE TABLE INST, Here is a database schema( table schema);
Where did Celestino Tugot place?.It is not neccessary to use all the tables.
SELECT date FROM table_name_56 WHERE week = 4
CREATE TABLE INST, Here is a database schema( table schema);
What day did they play on week 4?It is not neccessary to use all the tables.
SELECT COUNT(part_4) FROM table_1745843_10 WHERE verb_meaning = "to bear"
CREATE TABLE INST, Here is a database schema( table schema);
How many verbs mean to bearIt is not neccessary to use all the tables.
SELECT COUNT(*) FROM building
CREATE TABLE INST, Here is a database schema( table schema);
How many buildings are there?It is not neccessary to use all the tables.
SELECT length FROM table_16279520_1 WHERE release = "3.5"
CREATE TABLE INST, Here is a database schema( table schema);
What was the length time of the 3.5 release?It is not neccessary to use all the tables.
SELECT SUM Drawn FROM table WHERE Penalties = 1 AND Conversions > 20
CREATE TABLE INST, Here is a database schema( table schema);
How many ties did he have when he had 1 penalties and more than 20 conversions?.It is not neccessary to use all the tables.
SELECT country FROM table_name_1 WHERE place = "t9" AND player = "michael campbell"
CREATE TABLE INST, Here is a database schema( table schema);
What is Country when Place is "T9" and when Player is "Michael Campbell"?It is not neccessary to use all the tables.
SELECT visitor FROM table_name_38 WHERE date = "january 19, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the visitor on January 19 2008?It is not neccessary to use all the tables.
SELECT COUNT(crowd) FROM table_name_28 WHERE venue = "glenferrie oval"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of the crowd at Glenferrie Oval?It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_name_28 WHERE circuit = "calder park"
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds were run at Calder Park?It is not neccessary to use all the tables.
SELECT MIN Drawn FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of drawn games by a team?.It is not neccessary to use all the tables.
SELECT City FROM table WHERE State/Territory = tasmania AND ICAO = ymhb
CREATE TABLE INST, Here is a database schema( table schema);
Which city has tasmania as the state/territory and a ICAO of ymhb?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Goal = 4
CREATE TABLE INST, Here is a database schema( table schema);
What was result of goal 4?.It is not neccessary to use all the tables.
SELECT MAX(touchdowns) FROM table_14342592_7 WHERE player = "Heston"
CREATE TABLE INST, Here is a database schema( table schema);
How many touchdowns were there when Heston was in play?It is not neccessary to use all the tables.
SELECT type FROM table_name_46 WHERE name = "colton's crossing bridge"
CREATE TABLE INST, Here is a database schema( table schema);
What type of bridge is Colton's Crossing Bridge?It is not neccessary to use all the tables.
SELECT 2nd throw FROM table WHERE Equation = 1 × 9² + 4 × 9 + 0
CREATE TABLE INST, Here is a database schema( table schema);
If the equation is 1 × 9² + 4 × 9 + 0, what is the 2nd throw?.It is not neccessary to use all the tables.
SELECT Runner(s)-up FROM table WHERE Margin of victory = 11 strokes
CREATE TABLE INST, Here is a database schema( table schema);
Who were the runner(s)-up when Tiger won by 11 strokes?.It is not neccessary to use all the tables.
SELECT Feature FROM table WHERE Driving Force EX = no AND Driving Force GT = yes AND Driving Force Pro = yes
CREATE TABLE INST, Here is a database schema( table schema);
Driving Force EX of no, and a Driving Force GT of yes, and a Driving Force Pro of yes has what feature?.It is not neccessary to use all the tables.
SELECT 2011 FROM table_name_94 WHERE 2010 = "2r"
CREATE TABLE INST, Here is a database schema( table schema);
Name the 2011 when 2010 is 2rIt is not neccessary to use all the tables.
SELECT Score FROM table WHERE Visitor = chicago
CREATE TABLE INST, Here is a database schema( table schema);
what team visited chicago.It is not neccessary to use all the tables.
SELECT erp_w FROM table_name_19 WHERE frequency_mhz > 93.3 AND city_of_license = "washington, georgia"
CREATE TABLE INST, Here is a database schema( table schema);
Name the ERP W with a frequency mhz more than 93.3 and city license of washington georgiaIt is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Time = 3:00
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent of the 3:00 time?.It is not neccessary to use all the tables.
SELECT COUNT(game) FROM table_name_37 WHERE opponents < 118 AND nets_points > 109 AND opponent = "washington"
CREATE TABLE INST, Here is a database schema( table schema);
How many games had fewer than 118 opponents and more than 109 net points with an opponent of Washington?It is not neccessary to use all the tables.
SELECT Played FROM table WHERE Points for = 473
CREATE TABLE INST, Here is a database schema( table schema);
How many matches were played by the team that has 473 points for?.It is not neccessary to use all the tables.
SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY AVG(MANAGER_ID) DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those employees who did not have any job in the past, return a bar chart about the distribution of job_id and the average of manager_id , and group by attribute job_id, show by the total number in descending.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_41 WHERE date = "october 17, 2004"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance of the game on October 17 2004?It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Player = phil graham
CREATE TABLE INST, Here is a database schema( table schema);
What round is player phil graham in?.It is not neccessary to use all the tables.
SELECT Loan Club FROM table WHERE Name = dennehy
CREATE TABLE INST, Here is a database schema( table schema);
What is the loan club named dennehy?.It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND fare.one_direction_cost = (SELECT MIN(FAREalias1.one_direction_cost) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, fare AS FAREalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'PHILADELPHIA' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'SAN FRANCISCO' AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id
CREATE TABLE INST, Here is a database schema( table schema);
what is the least expensive way to fly from PHILADELPHIA to SAN FRANCISCOIt is not neccessary to use all the tables.
SELECT Highest Score FROM table WHERE Innings = 9 AND Player = Donald Bradman
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when Donald Bradman in 9 innings?.It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_18018214_3 WHERE goals_scored = 47
CREATE TABLE INST, Here is a database schema( table schema);
HOw many points where there when the number of goals scored was 47?It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Silver = 1 AND Gold < 7 AND Bronze = 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of rank when silver is 1, and gold is less than 7, and bronze is 2?.It is not neccessary to use all the tables.
SELECT 1:30 pm FROM table WHERE 4:00 pm = pinky and the brain
CREATE TABLE INST, Here is a database schema( table schema);
What is on at 1:30 if Pinky and the Brain is on a 4:00pm?.It is not neccessary to use all the tables.
SELECT Drop FROM table WHERE Date = 10/02/2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the drop number on 10/02/2007?.It is not neccessary to use all the tables.
SELECT COUNT(pick) FROM table_name_13 WHERE team = "seattle mariners"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number pick for seattle mariners team?It is not neccessary to use all the tables.
SELECT AVG Draws FROM table WHERE Total = 1 AND Goal difference = 2:0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of draws that have a total of 1 and a goal difference of 2:0?.It is not neccessary to use all the tables.
SELECT COUNT Manhattan FROM table WHERE Staten Island = 12,658
CREATE TABLE INST, Here is a database schema( table schema);
What was the total number in Manhattan when Staten Island was 12,658?.It is not neccessary to use all the tables.