text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_87 (season VARCHAR, winners VARCHAR)
### Question:
What Season had Dundee United as a Winner?
### Answer:
SELECT season FROM table_name_87 WHERE winners = "dundee united" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (owner VARCHAR, locomotive VARCHAR)
### Question:
what is the owner of the c501
### Answer:
SELECT owner FROM table_name_2 WHERE locomotive = "c501" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE WINE (Price INTEGER, Score INTEGER, Appelation VARCHAR)
### Question:
What are the maximum price and score of wines produced by St. Helena appelation?
### Answer:
SELECT MAX(Price), MAX(Score) FROM WINE WHERE Appelation = "St. Helena" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_95 (pole_position VARCHAR, race VARCHAR)
### Question:
What is the Pole Position of the Swedish Grand Prix?
### Answer:
SELECT pole_position FROM table_name_95 WHERE race = "swedish grand prix" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22591910_4 (position VARCHAR)
### Question:
who was position 3 in 2007-2008?
### Answer:
SELECT 2007 AS _2008 FROM table_22591910_4 WHERE position = 3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_5 (wheel_arrangement VARCHAR, builder’s_model VARCHAR, total_produced VARCHAR)
### Question:
What is the wheel arrangement of cf-16-4, and 16 produced?
### Answer:
SELECT wheel_arrangement FROM table_name_5 WHERE builder’s_model = "cf-16-4" AND total_produced = 16 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
### Question:
Return the names of singers who are from UK and released an English song.
### Answer:
SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_26 (total VARCHAR, years VARCHAR)
### Question:
What is the Total for 1953–1964?
### Answer:
SELECT total FROM table_name_26 WHERE years = "1953–1964" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25461827_2 (contestant VARCHAR, age VARCHAR)
### Question:
What is the number of contestants who are aged exactly 18?
### Answer:
SELECT COUNT(contestant) FROM table_25461827_2 WHERE age = 18 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (type VARCHAR, state VARCHAR, royal_house VARCHAR, name VARCHAR)
### Question:
What type of state was Lu, when Yi was the ruler from the royal house of Ji?
### Answer:
SELECT type FROM table_name_39 WHERE royal_house = "ji" AND name = "yi" AND state = "lu" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27712702_7 (team VARCHAR, date VARCHAR)
### Question:
Which team played on November 15?
### Answer:
SELECT team FROM table_27712702_7 WHERE date = "November 15" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10798421_1 (number_of_people_1991 INTEGER, percent_of_slovenes_1991 VARCHAR)
### Question:
Give me the minimum number of people in 1991 with 92.5% of Slovenes in 1991.
### Answer:
SELECT MIN(number_of_people_1991) FROM table_10798421_1 WHERE percent_of_slovenes_1991 = "92.5%" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (total VARCHAR, nation VARCHAR, rank VARCHAR)
### Question:
What is the total medals Austria and those with larger than rank 4 have?
### Answer:
SELECT COUNT(total) FROM table_name_76 WHERE nation = "austria" AND rank > 4 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (rank INTEGER, sales__billion_$_ VARCHAR, profits__billion_$_ VARCHAR)
### Question:
What is the average rank of the company with more than 146.56 billion in sales and profits of 11.68 billions?
### Answer:
SELECT AVG(rank) FROM table_name_97 WHERE sales__billion_$_ > 146.56 AND profits__billion_$_ = 11.68 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_93 (venue VARCHAR, founded VARCHAR, league VARCHAR)
### Question:
Which venue was founded after 1967 and had the league North American Soccer League?
### Answer:
SELECT venue FROM table_name_93 WHERE founded > 1967 AND league = "north american soccer league" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (position VARCHAR, team VARCHAR)
### Question:
What is Position, when Team is Cincinnati Royals?
### Answer:
SELECT position FROM table_name_77 WHERE team = "cincinnati royals" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (result VARCHAR, week VARCHAR)
### Question:
On week 13 what was the score of the game?
### Answer:
SELECT result FROM table_name_11 WHERE week = 13 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (points VARCHAR, wins VARCHAR, team VARCHAR, class VARCHAR, year VARCHAR)
### Question:
How many points numbers had a class of 250cc, a year prior to 1978, Yamaha as a team, and where wins was more than 0?
### Answer:
SELECT COUNT(points) FROM table_name_19 WHERE class = "250cc" AND year < 1978 AND team = "yamaha" AND wins > 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25580292_13 (winner VARCHAR, stage VARCHAR)
### Question:
How many winners were there for stage 5?
### Answer:
SELECT COUNT(winner) FROM table_25580292_13 WHERE stage = 5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_13 (pick INTEGER, player VARCHAR, position VARCHAR, team VARCHAR)
### Question:
What is the lowest pick number for Arturo McDowell, who plays the OF position for the San Francisco Giants?
### Answer:
SELECT MIN(pick) FROM table_name_13 WHERE position = "of" AND team = "san francisco giants" AND player = "arturo mcdowell" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1557974_1 (career_and_other_notes VARCHAR, birthplace VARCHAR)
### Question:
How many wrestlers were born in nara, and have a completed 'career and other notes' section?
### Answer:
SELECT COUNT(career_and_other_notes) FROM table_1557974_1 WHERE birthplace = "Nara" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_43 (afc_cup VARCHAR, name VARCHAR)
### Question:
Which AFC cup does Kenji Arai have?
### Answer:
SELECT afc_cup FROM table_name_43 WHERE name = "kenji arai" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (outcome VARCHAR, opponent VARCHAR, surface VARCHAR)
### Question:
Which Outcome has an Opponent of wendy turnbull, and a Surface of grass?
### Answer:
SELECT outcome FROM table_name_54 WHERE opponent = "wendy turnbull" AND surface = "grass" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23915973_1 (frequency VARCHAR, branding VARCHAR)
### Question:
What is the frequency when radio station branding is 106.3 energy fm naga?
### Answer:
SELECT frequency FROM table_23915973_1 WHERE branding = "106.3 Energy FM Naga" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_60 (city_location VARCHAR, pole_position VARCHAR)
### Question:
Where is Emerson Fittipaldi starting in Pole position?
### Answer:
SELECT city_location FROM table_name_60 WHERE pole_position = "emerson fittipaldi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25244412_2 (state VARCHAR, total_electricity__gw·h_ VARCHAR)
### Question:
What was the state with the total electricity generated is 38380 gw-h?
### Answer:
SELECT state FROM table_25244412_2 WHERE total_electricity__gw·h_ = 38380 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_32 (name VARCHAR, year VARCHAR)
### Question:
Which Name was in the Year 2001?
### Answer:
SELECT name FROM table_name_32 WHERE year = "2001" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_45 (opponent VARCHAR, overs VARCHAR)
### Question:
Who was the opponent when Steven Smith had 3.3 overs?
### Answer:
SELECT opponent FROM table_name_45 WHERE overs = 3.3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_48 (yam_ VARCHAR, y_ VARCHAR, soybean__green__ VARCHAR, f_ VARCHAR, potato_ VARCHAR, d_ VARCHAR)
### Question:
What is the yam amount with amount of soybean 0 and potato of 0.01?
### Answer:
SELECT yam_[y_] FROM table_name_48 WHERE soybean__green__[f_] = "0" AND potato_[d_] = "0.01" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20190834_1 (divisional_titles INTEGER, enrollment VARCHAR)
### Question:
What is the most divisional titles won by a school with an enrollment of 30049?
### Answer:
SELECT MAX(divisional_titles) FROM table_20190834_1 WHERE enrollment = 30049 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_72 (team VARCHAR, car_no VARCHAR)
### Question:
Which team had car number 15?
### Answer:
SELECT team FROM table_name_72 WHERE car_no = "15" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Movie (title VARCHAR, YEAR INTEGER, director VARCHAR)
### Question:
What is the names of movies whose created year is after all movies directed by Steven Spielberg?
### Answer:
SELECT title FROM Movie WHERE YEAR > (SELECT MAX(YEAR) FROM Movie WHERE director = "Steven Spielberg") |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_5 (ceased_operation VARCHAR, launched VARCHAR)
### Question:
What was the ceased operation that launched June 29, 1961?
### Answer:
SELECT ceased_operation FROM table_name_5 WHERE launched = "june 29, 1961" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_Id VARCHAR)
### Question:
which course has most number of registered students?
### Answer:
SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY COUNT(*) DESC LIMIT 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_28 (score VARCHAR, to_par VARCHAR, country VARCHAR)
### Question:
WHich Score has a To par of –3, and a Country of united states?
### Answer:
SELECT score FROM table_name_28 WHERE to_par = "–3" AND country = "united states" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate (Date VARCHAR, Venue VARCHAR, Debate_ID VARCHAR); CREATE TABLE debate_people (Debate_ID VARCHAR, Negative VARCHAR)
### Question:
Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.
### Answer:
SELECT T3.Name, T2.Date, T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Negative = T3.People_ID ORDER BY T3.Name |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (island VARCHAR, airportname VARCHAR)
### Question:
On which island is Esperadinha airport located?
### Answer:
SELECT island FROM table_name_53 WHERE airportname = "esperadinha airport" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE enzyme (OMIM INTEGER)
### Question:
What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?
### Answer:
SELECT MAX(OMIM) FROM enzyme |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (player VARCHAR, pick VARCHAR, hometown_school VARCHAR)
### Question:
What is the Player from Dayton, Oh with a Pick of 15 or larger?
### Answer:
SELECT player FROM table_name_99 WHERE pick > 15 AND hometown_school = "dayton, oh" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2781227_1 (college_junior_club_team VARCHAR, player VARCHAR)
### Question:
What is the college/junior/club team name of player Mats Lindgren?
### Answer:
SELECT college_junior_club_team FROM table_2781227_1 WHERE player = "Mats Lindgren" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (time VARCHAR, jockey VARCHAR, winner VARCHAR)
### Question:
Which time contains the jockery of isaac murphy as well as the winner of kingman?
### Answer:
SELECT time FROM table_name_39 WHERE jockey = "isaac murphy" AND winner = "kingman" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_34 (home VARCHAR, date VARCHAR)
### Question:
Where is the home on march 12?
### Answer:
SELECT home FROM table_name_34 WHERE date = "march 12" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_18 (rank INTEGER, country VARCHAR, wins VARCHAR)
### Question:
Name the most rank for the United States with wins less than 1
### Answer:
SELECT MAX(rank) FROM table_name_18 WHERE country = "united states" AND wins < 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR)
### Question:
What was the date when the away team was Carlton?
### Answer:
SELECT date FROM table_name_65 WHERE away_team = "carlton" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (wins INTEGER, played INTEGER)
### Question:
What is the average Wins, when Played is less than 30?
### Answer:
SELECT AVG(wins) FROM table_name_96 WHERE played < 30 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Cartoon (Written_by VARCHAR)
### Question:
How many cartoons were written by "Joseph Kuhr"?
### Answer:
SELECT COUNT(*) FROM Cartoon WHERE Written_by = "Joseph Kuhr" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21602734_1 (league VARCHAR, year VARCHAR)
### Question:
What league was involved in 2010?
### Answer:
SELECT league FROM table_21602734_1 WHERE year = 2010 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_25 (record VARCHAR, time___et__ VARCHAR, opponent VARCHAR)
### Question:
Which Record has a Time (ET) of 1:00pm, and an Opponent of kansas city chiefs?
### Answer:
SELECT record FROM table_name_25 WHERE time___et__ = "1:00pm" AND opponent = "kansas city chiefs" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2509202_2 (sorata_municipality VARCHAR, quiabaya_municipality VARCHAR)
### Question:
How many people in the sorata municipality when the quiabaya municipality has 33?
### Answer:
SELECT sorata_municipality FROM table_2509202_2 WHERE quiabaya_municipality = "33" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14342480_6 (extra_points INTEGER, position VARCHAR)
### Question:
Name the most extra points for right tackle
### Answer:
SELECT MAX(extra_points) FROM table_14342480_6 WHERE position = "Right tackle" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_3 (away_team VARCHAR)
### Question:
What did the Melbourne team score in their away game?
### Answer:
SELECT away_team AS score FROM table_name_3 WHERE away_team = "melbourne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19741316_1 (races INTEGER, position VARCHAR)
### Question:
What was the number of races in the season in which the team placed on the 14th position?
### Answer:
SELECT MIN(races) FROM table_19741316_1 WHERE position = "14th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_92 (position VARCHAR, class VARCHAR, laps VARCHAR)
### Question:
The driver in class A with 125 laps is in what position?
### Answer:
SELECT position FROM table_name_92 WHERE class = "a" AND laps = 125 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (scores VARCHAR, grand_finalist VARCHAR)
### Question:
What scores did grand finalist hawthorn have?
### Answer:
SELECT scores FROM table_name_63 WHERE grand_finalist = "hawthorn" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (battle VARCHAR, bulgarian_commander VARCHAR)
### Question:
What is the Battle with Bulgarian Commander Ivan Asen II?
### Answer:
SELECT battle FROM table_name_21 WHERE bulgarian_commander = "ivan asen ii" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24781886_3 (air_date VARCHAR, viewers VARCHAR)
### Question:
When 7.08 is the amount of viewers what is the air date?
### Answer:
SELECT air_date FROM table_24781886_3 WHERE viewers = "7.08" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_80 (byes VARCHAR, south_west_dfl VARCHAR, wins VARCHAR)
### Question:
What is the total number of Byes, when South West DFL is "Coleraine", and when Wins is less than 12?
### Answer:
SELECT COUNT(byes) FROM table_name_80 WHERE south_west_dfl = "coleraine" AND wins < 12 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (venue VARCHAR, score VARCHAR, date VARCHAR)
### Question:
What was the location for the match held on March 7, 2007, which ended with a score of 0-0?
### Answer:
SELECT venue FROM table_name_63 WHERE score = "0-0" AND date = "march 7, 2007" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_43 (round INTEGER, circuit VARCHAR)
### Question:
What is the round for the Norisring circuit?
### Answer:
SELECT AVG(round) FROM table_name_43 WHERE circuit = "norisring" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15887683_3 (package_option VARCHAR, television_service VARCHAR)
### Question:
What packages offer the Cartello Promozionale Sky HD service?
### Answer:
SELECT package_option FROM table_15887683_3 WHERE television_service = "Cartello promozionale Sky HD" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (campus VARCHAR, year_opened VARCHAR)
### Question:
What campus opened in 1970?
### Answer:
SELECT campus FROM table_name_12 WHERE year_opened = "1970" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_62 (venue VARCHAR, away_team VARCHAR)
### Question:
In what venue was the away team South Melbourne?
### Answer:
SELECT venue FROM table_name_62 WHERE away_team = "south melbourne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_46 (team VARCHAR, driver VARCHAR, position VARCHAR, date VARCHAR)
### Question:
what team has a drive name emmanuel de graffenried and a position larger than 1 as well as the date of 9/1953?
### Answer:
SELECT team FROM table_name_46 WHERE position > 1 AND date = "9/1953" AND driver = "emmanuel de graffenried" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE performance (SHARE INTEGER, TYPE VARCHAR)
### Question:
What are the maximum and minimum share of performances whose type is not "Live final".
### Answer:
SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> "Live final" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_48 (attendance VARCHAR, home_team VARCHAR)
### Question:
What is the attendance date of the game home team Shrewsbury Town played?
### Answer:
SELECT attendance FROM table_name_48 WHERE home_team = "shrewsbury town" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1888051_1 (province VARCHAR, area__km²_ VARCHAR)
### Question:
when area (km²) is 1605.35, how many provinces are there?
### Answer:
SELECT COUNT(province) FROM table_1888051_1 WHERE area__km²_ = "1605.35" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (Id VARCHAR)
### Question:
What is the result for 1989 that has a 1992 result of 0 / 1?
### Answer:
SELECT 1989 FROM table_name_35 WHERE 1992 = "0 / 1" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (score VARCHAR, place VARCHAR, country VARCHAR)
### Question:
Which Score has a Place of t6, and a Country of paraguay?
### Answer:
SELECT score FROM table_name_20 WHERE place = "t6" AND country = "paraguay" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23224961_1 (oberpfalz VARCHAR, oberbayern_a VARCHAR)
### Question:
When fc oberau is the oberbayern a what is the oberpfalz?
### Answer:
SELECT oberpfalz FROM table_23224961_1 WHERE oberbayern_a = "FC Oberau" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_80 (ceremony VARCHAR, nominee VARCHAR)
### Question:
In which ceremony was Harnam Singh Rawail nominated for an award?
### Answer:
SELECT ceremony FROM table_name_80 WHERE nominee = "harnam singh rawail" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13618358_1 (district VARCHAR, income_poverty_f VARCHAR)
### Question:
How many districts had an depravity level of 27.7
### Answer:
SELECT COUNT(district) FROM table_13618358_1 WHERE income_poverty_f = "27.7" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_7 (round VARCHAR, position VARCHAR)
### Question:
Which round has an offensive tackle position?
### Answer:
SELECT round FROM table_name_7 WHERE position = "offensive tackle" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, department_id VARCHAR)
### Question:
display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a ’T’.
### Answer:
SELECT employee_id, first_name, last_name FROM employees WHERE department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%T%') |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (position VARCHAR, height VARCHAR)
### Question:
What is the Position of the Player with a Height of 2.11?
### Answer:
SELECT position FROM table_name_11 WHERE height = 2.11 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22648285_1 (miles__km_ VARCHAR, race_time VARCHAR)
### Question:
How many miles were driven in the race where the winner finished in 2:47:11?
### Answer:
SELECT miles__km_ FROM table_22648285_1 WHERE race_time = "2:47:11" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_9 (year VARCHAR, score VARCHAR)
### Question:
How many years had a score of 734-5d?
### Answer:
SELECT COUNT(year) FROM table_name_9 WHERE score = "734-5d" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (name VARCHAR, red_list INTEGER)
### Question:
What is the name with a red lest less than 7?
### Answer:
SELECT name FROM table_name_51 WHERE red_list < 7 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (crowd INTEGER, home_team VARCHAR)
### Question:
What was the lowest crowd size for the Carlton at home?
### Answer:
SELECT MIN(crowd) FROM table_name_2 WHERE home_team = "carlton" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26409328_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
### Question:
what is the production code of the episode viewed by 5.36 million u.s. people?
### Answer:
SELECT production_code FROM table_26409328_1 WHERE us_viewers__millions_ = "5.36" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (chassis VARCHAR, tyres VARCHAR, year VARCHAR)
### Question:
Name the chassis for 1970 and tyres of d
### Answer:
SELECT chassis FROM table_name_12 WHERE tyres = "d" AND year = 1970 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_41 (total_apps INTEGER, total_goals VARCHAR, fa_cup_goals VARCHAR)
### Question:
It has fa cup goals larger than 0 and total goals of 0, what is the average total apps?
### Answer:
SELECT AVG(total_apps) FROM table_name_41 WHERE total_goals = 0 AND fa_cup_goals > 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (first_baseman VARCHAR, shortstop VARCHAR)
### Question:
Who was the First Baseman when the Shortstop was zoilo versalles?
### Answer:
SELECT first_baseman FROM table_name_53 WHERE shortstop = "zoilo versalles" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (played INTEGER, losses VARCHAR, goals_for VARCHAR, goals_against VARCHAR, wins VARCHAR)
### Question:
Which Played has Goals against larger than 34, and Wins smaller than 12, and Goals for smaller than 50, and Losses larger than 15?
### Answer:
SELECT AVG(played) FROM table_name_39 WHERE goals_against > 34 AND wins < 12 AND goals_for < 50 AND losses > 15 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23938357_6 (rank VARCHAR, name VARCHAR)
### Question:
How many times is keauna mclaughlin / rockne brubaker ranked?
### Answer:
SELECT COUNT(rank) FROM table_23938357_6 WHERE name = "Keauna McLaughlin / Rockne Brubaker" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_44 (nationality VARCHAR, position VARCHAR, pick VARCHAR)
### Question:
What is Nationality, when Position is "G", and when Pick is greater than 26?
### Answer:
SELECT nationality FROM table_name_44 WHERE position = "g" AND pick > 26 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (date VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR)
### Question:
Which date has the tom gullikson butch walts final, and who was the runner-up?
### Answer:
SELECT date FROM table_name_74 WHERE outcome = "runner-up" AND opponents_in_the_final = "tom gullikson butch walts" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (rank VARCHAR, location VARCHAR, category VARCHAR)
### Question:
What is the rank of the park in pigeon forge, tennessee in the best food category?
### Answer:
SELECT COUNT(rank) FROM table_name_57 WHERE location = "pigeon forge, tennessee" AND category = "best food" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (venue VARCHAR, position VARCHAR, notes VARCHAR, year VARCHAR)
### Question:
Which venue had 5000 m notes in 2009 with a 1st position?
### Answer:
SELECT venue FROM table_name_2 WHERE notes = "5000 m" AND year = 2009 AND position = "1st" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_1 (res VARCHAR, record VARCHAR)
### Question:
What was the result of the bout that led to a 4-4 record?
### Answer:
SELECT res FROM table_name_1 WHERE record = "4-4" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22854436_1 (average_annual_rainfall__mm_ VARCHAR, population__2002_census_data_ VARCHAR)
### Question:
Name the annual rainfail for 2002 population being 493984
### Answer:
SELECT average_annual_rainfall__mm_ FROM table_22854436_1 WHERE population__2002_census_data_ = 493984 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (winners VARCHAR, year VARCHAR)
### Question:
Who were the winners in 1998?
### Answer:
SELECT winners FROM table_name_11 WHERE year = 1998 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_92 (position VARCHAR, school_country VARCHAR)
### Question:
What position was for Arizona State?
### Answer:
SELECT position FROM table_name_92 WHERE school_country = "arizona state" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (time_in_office VARCHAR, branch VARCHAR)
### Question:
What time in office does the U.S. Navy have?
### Answer:
SELECT time_in_office FROM table_name_59 WHERE branch = "u.s. navy" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_81 (goal INTEGER, venue VARCHAR)
### Question:
What was the Goal in Stade Roi Baudouin, Brussels?
### Answer:
SELECT AVG(goal) FROM table_name_81 WHERE venue = "stade roi baudouin, brussels" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_79 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
### Question:
Who was the Away team that played at Carlton on 11 June 1966?
### Answer:
SELECT away_team FROM table_name_79 WHERE date = "11 june 1966" AND home_team = "carlton" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_41 (year VARCHAR, rank VARCHAR)
### Question:
Name the year for 8 rank
### Answer:
SELECT year FROM table_name_41 WHERE rank = "8" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (score VARCHAR, tie_no INTEGER)
### Question:
What was the score when the Tie no less than 2?
### Answer:
SELECT score FROM table_name_11 WHERE tie_no < 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15621965_10 (player VARCHAR, school_club_team VARCHAR)
### Question:
Name the number of players from arizona
### Answer:
SELECT COUNT(player) FROM table_15621965_10 WHERE school_club_team = "Arizona" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (league VARCHAR, fa_cup VARCHAR, total VARCHAR)
### Question:
Which league has an FA cup greater than 0, with a total greater than 21?
### Answer:
SELECT league FROM table_name_76 WHERE fa_cup > 0 AND total > 21 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14006_1 (bleeding_time VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR)
### Question:
what's the bleeding time with platelet count being decreased and prothrombin time being prolonged
### Answer:
SELECT bleeding_time FROM table_14006_1 WHERE platelet_count = "Decreased" AND prothrombin_time = "Prolonged" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.