instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Which season is Euroleague with Greek Cup?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (season VARCHAR, european_cup VARCHAR, national_cup VARCHAR)
SELECT season FROM table_name_4 WHERE european_cup = "euroleague" AND national_cup = "greek cup"
Write a SQL query that answers the following question: Which European Cup is in the 1990-91 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (european_cup VARCHAR, season VARCHAR)
SELECT european_cup FROM table_name_78 WHERE season = "1990-91"
Write a SQL query that answers the following question: Which European Cup is in the 2006-07 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (european_cup VARCHAR, season VARCHAR)
SELECT european_cup FROM table_name_91 WHERE season = "2006-07"
Write a SQL query that answers the following question: Which National League is in 1969-70 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (national_league VARCHAR, season VARCHAR)
SELECT national_league FROM table_name_7 WHERE season = "1969-70"
Write a SQL query that answers the following question: what is the right ascension (j2000) when the apparent magnitude is 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (right_ascension___j2000__ VARCHAR, apparent_magnitude VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_77 WHERE apparent_magnitude = 13
Write a SQL query that answers the following question: what is the constellation when the right ascension (j2000) is 09h51m54.0s?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT constellation FROM table_name_61 WHERE right_ascension___j2000__ = "09h51m54.0s"
Write a SQL query that answers the following question: what is the lowest apparent magnitude when the object type is spiral galaxy, the constellation is leo minor and the ngc number is more than 3021?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (apparent_magnitude INTEGER, ngc_number VARCHAR, object_type VARCHAR, constellation VARCHAR)
SELECT MIN(apparent_magnitude) FROM table_name_66 WHERE object_type = "spiral galaxy" AND constellation = "leo minor" AND ngc_number > 3021
Write a SQL query that answers the following question: Name the total number of Draws when goals for is 58 and losses is 12 when goal differences is less than 21
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (draws VARCHAR, goal_difference VARCHAR, goals_for VARCHAR, losses VARCHAR)
SELECT COUNT(draws) FROM table_name_45 WHERE goals_for = 58 AND losses = 12 AND goal_difference < 21
Write a SQL query that answers the following question: How many goals for where there when draws are less than 11, points of is 54+16 and goals against are less than 39?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (goals_for VARCHAR, goals_against VARCHAR, draws VARCHAR, points VARCHAR)
SELECT COUNT(goals_for) FROM table_name_66 WHERE draws < 11 AND points = "54+16" AND goals_against < 39
Write a SQL query that answers the following question: Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (played VARCHAR, goals_for VARCHAR, points VARCHAR, position VARCHAR)
SELECT COUNT(played) FROM table_name_67 WHERE points = "31-7" AND position = 16 AND goals_for < 35
Write a SQL query that answers the following question: Name the total number of goal difference when the position is more than 20
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (goal_difference VARCHAR, position INTEGER)
SELECT COUNT(goal_difference) FROM table_name_49 WHERE position > 20
Write a SQL query that answers the following question: Name the sum of draws when the position is less than 17 and wins is less than 11
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (draws INTEGER, position VARCHAR, wins VARCHAR)
SELECT SUM(draws) FROM table_name_82 WHERE position < 17 AND wins < 11
Write a SQL query that answers the following question: what is the position is 2012 when the last title is n/a and the first season is 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (position_in_2012 VARCHAR, last_title VARCHAR, first_season VARCHAR)
SELECT position_in_2012 FROM table_name_93 WHERE last_title = "n/a" AND first_season = "2011"
Write a SQL query that answers the following question: what is the last title when the titles is more than 12 and the position in 2012 is 7th
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (last_title VARCHAR, titles VARCHAR, position_in_2012 VARCHAR)
SELECT last_title FROM table_name_91 WHERE titles > 12 AND position_in_2012 = "7th"
Write a SQL query that answers the following question: What is the rank number for a placing of 28.5 and a total less than 92.7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (rank VARCHAR, placings VARCHAR, total VARCHAR)
SELECT COUNT(rank) FROM table_name_30 WHERE placings = "28.5" AND total < 92.7
Write a SQL query that answers the following question: What is the placing value for a total less than 96.07 in the United States?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (placings VARCHAR, total VARCHAR, nation VARCHAR)
SELECT placings FROM table_name_15 WHERE total < 96.07 AND nation = "united states"
Write a SQL query that answers the following question: What is the total for Rank 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (total VARCHAR, rank VARCHAR)
SELECT COUNT(total) FROM table_name_57 WHERE rank = 11
Write a SQL query that answers the following question: What is the sum of all total values for Switzerland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (total INTEGER, nation VARCHAR)
SELECT SUM(total) FROM table_name_25 WHERE nation = "switzerland"
Write a SQL query that answers the following question: What rank goes to a total of 92.7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (rank VARCHAR, total VARCHAR)
SELECT rank FROM table_name_66 WHERE total = 92.7
Write a SQL query that answers the following question: Who has a rank great than 3 and a placing of 64?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (name VARCHAR, rank VARCHAR, placings VARCHAR)
SELECT name FROM table_name_60 WHERE rank > 3 AND placings = "64"
Write a SQL query that answers the following question: How many Horizontal Bars have a Team of japan (jpn), and Parallel Bars smaller than 38.924?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (horizontal_bar VARCHAR, team VARCHAR, parallel_bars VARCHAR)
SELECT COUNT(horizontal_bar) FROM table_name_68 WHERE team = "japan (jpn)" AND parallel_bars < 38.924
Write a SQL query that answers the following question: How many pommel Horses have Rings of 37.461, and a Total smaller than 229.507?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (pommel_horse VARCHAR, rings VARCHAR, total VARCHAR)
SELECT COUNT(pommel_horse) FROM table_name_16 WHERE rings = 37.461 AND total < 229.507
Write a SQL query that answers the following question: What is the sum of totals with a Vault of 38.437, and a Floor Exercise smaller than 37.524?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (total VARCHAR, vault VARCHAR, floor_exercise VARCHAR)
SELECT COUNT(total) FROM table_name_52 WHERE vault = 38.437 AND floor_exercise < 37.524
Write a SQL query that answers the following question: How many pommel horses have a Total smaller than 230.019, a Team of china (chn), and a Vault smaller than 38.437?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (pommel_horse VARCHAR, vault VARCHAR, total VARCHAR, team VARCHAR)
SELECT COUNT(pommel_horse) FROM table_name_52 WHERE total < 230.019 AND team = "china (chn)" AND vault < 38.437
Write a SQL query that answers the following question: What is the title where the studio was RKO, the role was Dolly, and the year was later than 1943?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (title VARCHAR, role VARCHAR, year VARCHAR, studio VARCHAR)
SELECT title FROM table_name_98 WHERE year > 1943 AND studio = "rko" AND role = "dolly"
Write a SQL query that answers the following question: Who was the director for To Have and Have Not, earlier than 1945 with WB studio?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (director VARCHAR, title VARCHAR, studio VARCHAR, year VARCHAR)
SELECT director FROM table_name_61 WHERE studio = "wb" AND year < 1945 AND title = "to have and have not"
Write a SQL query that answers the following question: What year was The Horn Blows at Midnight, directed by Raoul Walsh?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (year INTEGER, director VARCHAR, title VARCHAR)
SELECT AVG(year) FROM table_name_96 WHERE director = "raoul walsh" AND title = "the horn blows at midnight"
Write a SQL query that answers the following question: What title was directed by Raoul Walsh later than 1945?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (title VARCHAR, director VARCHAR, year VARCHAR)
SELECT title FROM table_name_66 WHERE director = "raoul walsh" AND year > 1945
Write a SQL query that answers the following question: What was the studio for The Hard Way in 1943?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (studio VARCHAR, year VARCHAR, title VARCHAR)
SELECT studio FROM table_name_77 WHERE year = 1943 AND title = "the hard way"
Write a SQL query that answers the following question: Which team plays at Lake Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_39 WHERE venue = "lake oval"
Write a SQL query that answers the following question: What was the away score when they played at Brunswick Street Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_92 WHERE venue = "brunswick street oval"
Write a SQL query that answers the following question: Where was South Melbourne played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_13 WHERE home_team = "south melbourne"
Write a SQL query that answers the following question: Where week is greater than 14 and Opponent is Dallas Cowboys, what is the result?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_89 WHERE week > 14 AND opponent = "dallas cowboys"
Write a SQL query that answers the following question: Where week is greater than 7 and attendance is 66,251 what is the result?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_31 WHERE week > 7 AND attendance = "66,251"
Write a SQL query that answers the following question: Where attendance is 79,431 what is date?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_61 WHERE attendance = "79,431"
Write a SQL query that answers the following question: Where Date is september 13, 1998 what is result?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_89 WHERE date = "september 13, 1998"
Write a SQL query that answers the following question: What did the away team score at Junction oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_30 WHERE venue = "junction oval"
Write a SQL query that answers the following question: Name the score when the home is ny islanders and the visitor is montreal
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (score VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_86 WHERE home = "ny islanders" AND visitor = "montreal"
Write a SQL query that answers the following question: Name the score when the decision is dipietro and the visitor is philadelphia
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (score VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_76 WHERE decision = "dipietro" AND visitor = "philadelphia"
Write a SQL query that answers the following question: Name the score when it had a decision of dipietro and visitor of ny islanders with home of colorado
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (score VARCHAR, home VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_80 WHERE decision = "dipietro" AND visitor = "ny islanders" AND home = "colorado"
Write a SQL query that answers the following question: Name the least attendance with carolina visitor
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (attendance INTEGER, visitor VARCHAR)
SELECT MIN(attendance) FROM table_name_97 WHERE visitor = "carolina"
Write a SQL query that answers the following question: What Venue had Carlton has the Away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_29 WHERE away_team = "carlton"
Write a SQL query that answers the following question: What is the record when Clippers have the high points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (record VARCHAR, high_points VARCHAR)
SELECT record FROM table_name_14 WHERE high_points = "clippers"
Write a SQL query that answers the following question: What had the high points when OT had high rebounds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT high_points FROM table_name_51 WHERE high_rebounds = "ot"
Write a SQL query that answers the following question: On what date did the Suns have high points with a record of 33–13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (date VARCHAR, high_points VARCHAR, record VARCHAR)
SELECT date FROM table_name_8 WHERE high_points = "suns" AND record = "33–13"
Write a SQL query that answers the following question: Who has the high assists when location attendance is 20,562?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT high_assists FROM table_name_20 WHERE location_attendance = "20,562"
Write a SQL query that answers the following question: Which Bronze has a Silver smaller than 1, and a Total larger than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT AVG(bronze) FROM table_name_94 WHERE silver < 1 AND total > 3
Write a SQL query that answers the following question: Which Gold has a Nation of united states, and a Total larger than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT MIN(gold) FROM table_name_60 WHERE nation = "united states" AND total > 5
Write a SQL query that answers the following question: Which Bronze has a Nation of argentina, and a Silver smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_28 WHERE nation = "argentina" AND silver < 0
Write a SQL query that answers the following question: Which Bronze has a Silver of 2, and a Total smaller than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT AVG(bronze) FROM table_name_15 WHERE silver = 2 AND total < 5
Write a SQL query that answers the following question: How many spectators were at the away team Carlton?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_14 WHERE away_team = "carlton"
Write a SQL query that answers the following question: What school colors for the friends' school with over 1000 enrolled?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (school VARCHAR, enrolment VARCHAR)
SELECT school AS Colors FROM table_name_70 WHERE enrolment > 1000 AND school = "the friends' school"
Write a SQL query that answers the following question: What is the low enrolment for schools founded after 1995?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (enrolment INTEGER, founded INTEGER)
SELECT MIN(enrolment) FROM table_name_67 WHERE founded > 1995
Write a SQL query that answers the following question: WHere is the friends' school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (location VARCHAR, school VARCHAR)
SELECT location FROM table_name_65 WHERE school = "the friends' school"
Write a SQL query that answers the following question: What is the System with the Current version 3.0.0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (system VARCHAR, current_version VARCHAR)
SELECT system FROM table_name_58 WHERE current_version = "3.0.0"
Write a SQL query that answers the following question: What is the Name when the License is gpl and the Current Version is 1.72?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (name VARCHAR, license VARCHAR, current_version VARCHAR)
SELECT name FROM table_name_35 WHERE license = "gpl" AND current_version = "1.72"
Write a SQL query that answers the following question: What is the System when the Licence is gpl and the Current Version is 1.72?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (system VARCHAR, license VARCHAR, current_version VARCHAR)
SELECT system FROM table_name_63 WHERE license = "gpl" AND current_version = "1.72"
Write a SQL query that answers the following question: What is the System with a freeware License?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (system VARCHAR, license VARCHAR)
SELECT system FROM table_name_9 WHERE license = "freeware"
Write a SQL query that answers the following question: What is the License when the Platform is windows and the Name is Altirra?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (license VARCHAR, platform VARCHAR, name VARCHAR)
SELECT license FROM table_name_98 WHERE platform = "windows" AND name = "altirra"
Write a SQL query that answers the following question: What Platform has a Current Version 0.6.2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (platform VARCHAR, current_version VARCHAR)
SELECT platform FROM table_name_55 WHERE current_version = "0.6.2"
Write a SQL query that answers the following question: What is the average attendance on October 9, 1983?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_11 WHERE date = "october 9, 1983"
Write a SQL query that answers the following question: What is the lowest attendance on September 4, 1983?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (attendance INTEGER, date VARCHAR)
SELECT MIN(attendance) FROM table_name_19 WHERE date = "september 4, 1983"
Write a SQL query that answers the following question: What is the mascot whose school opened in 1970?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (mascot VARCHAR, year_opened VARCHAR)
SELECT mascot FROM table_name_51 WHERE year_opened = "1970"
Write a SQL query that answers the following question: What principal has a school mascot of the patriots?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (principal VARCHAR, mascot VARCHAR)
SELECT principal FROM table_name_92 WHERE mascot = "patriots"
Write a SQL query that answers the following question: What was the venue when the score was 24–28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_name_43 WHERE score = "24–28"
Write a SQL query that answers the following question: What is the lowest pick when the School is Stanford University?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (pick INTEGER, school VARCHAR)
SELECT MIN(pick) FROM table_name_96 WHERE school = "stanford university"
Write a SQL query that answers the following question: What Team has a Pick of 40?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (team VARCHAR, pick VARCHAR)
SELECT team FROM table_name_67 WHERE pick = 40
Write a SQL query that answers the following question: What date was the away team Hawthorn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_78 WHERE away_team = "hawthorn"
Write a SQL query that answers the following question: What is the high loss total for players with zero wins and a win % greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (losses INTEGER, wins VARCHAR, win__percentage VARCHAR)
SELECT MAX(losses) FROM table_name_82 WHERE wins = 0 AND win__percentage > 0
Write a SQL query that answers the following question: What is the win % for the QB with 3 starts?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (win__percentage VARCHAR, starts VARCHAR)
SELECT win__percentage FROM table_name_7 WHERE starts = 3
Write a SQL query that answers the following question: What venue did geelong play an away game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_90 WHERE away_team = "geelong"
Write a SQL query that answers the following question: What home team played an away team of melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_28 WHERE away_team = "melbourne"
Write a SQL query that answers the following question: Which player had an overall pick of 130?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (player VARCHAR, overall VARCHAR)
SELECT player FROM table_name_53 WHERE overall = "130"
Write a SQL query that answers the following question: What round was Corey Cowick picked?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (round INTEGER, player VARCHAR)
SELECT AVG(round) FROM table_name_8 WHERE player = "corey cowick"
Write a SQL query that answers the following question: What position does the player from the Miami University (CCHA) club team play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (position VARCHAR, club_team VARCHAR)
SELECT position FROM table_name_20 WHERE club_team = "miami university (ccha)"
Write a SQL query that answers the following question: What most recent year had North Melbourne as a team and Hamish Mcintosh as a player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (year INTEGER, team VARCHAR, player VARCHAR)
SELECT MAX(year) FROM table_name_63 WHERE team = "north melbourne" AND player = "hamish mcintosh"
Write a SQL query that answers the following question: Which score had Essendon as an opponent and Steven Clark as a player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (score VARCHAR, opponent VARCHAR, player VARCHAR)
SELECT score FROM table_name_53 WHERE opponent = "essendon" AND player = "steven clark"
Write a SQL query that answers the following question: Which team got a Behind outcome and had an opponent of Brisbane Bears?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (team VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT team FROM table_name_86 WHERE outcome = "behind" AND opponent = "brisbane bears"
Write a SQL query that answers the following question: When did the north melbourne team play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_7 WHERE home_team = "north melbourne"
Write a SQL query that answers the following question: Who was the away team at junction oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_81 WHERE venue = "junction oval"
Write a SQL query that answers the following question: What was the home team's score at junction oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_17 WHERE venue = "junction oval"
Write a SQL query that answers the following question: What venue was essendon the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_20 WHERE away_team = "essendon"
Write a SQL query that answers the following question: Who is the home team at kardinia park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_16 WHERE venue = "kardinia park"
Write a SQL query that answers the following question: What is the storage stability of Arsine with a toxicity of 8, and field stability less than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (storage_stability INTEGER, field_stability VARCHAR, toxicity_as_blood_agent VARCHAR, agent VARCHAR)
SELECT MIN(storage_stability) FROM table_name_30 WHERE toxicity_as_blood_agent > 8 AND agent = "arsine" AND field_stability < 5
Write a SQL query that answers the following question: What is the field stability of Cyanogen Bromide that has an effectiveness of 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (field_stability VARCHAR, agent VARCHAR, effectiveness_as_blood_agent VARCHAR)
SELECT COUNT(field_stability) FROM table_name_5 WHERE agent = "cyanogen bromide" AND effectiveness_as_blood_agent > 9
Write a SQL query that answers the following question: When the Venue is mcg what is the Home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_47 WHERE venue = "mcg"
Write a SQL query that answers the following question: When the Away team was hawthorn, what's the Home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_84 WHERE away_team = "hawthorn"
Write a SQL query that answers the following question: What is the total associated with a Clean & jerk of 135, and a Snatch of 115?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (total__kg_ VARCHAR, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT total__kg_ FROM table_name_49 WHERE clean_ & _jerk = 135 AND snatch = 115
Write a SQL query that answers the following question: What is the highest Bodyweight associated with a Clean & jerk larger than 120, and a Total (kg) of 245?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (bodyweight INTEGER, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT MAX(bodyweight) FROM table_name_37 WHERE clean_ & _jerk > 120 AND total__kg_ = 245
Write a SQL query that answers the following question: What is the sum Total (kg) associated with a Snatch less than 110, and a Clean & jerk larger than 120?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (total__kg_ INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT SUM(total__kg_) FROM table_name_26 WHERE snatch < 110 AND clean_ & _jerk > 120
Write a SQL query that answers the following question: How many people have a Clean & jerk smaller than 142.5, a Bodyweight smaller than 55.58, and a Total (kg) larger than 210?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (snatch VARCHAR, total__kg_ VARCHAR, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT COUNT(snatch) FROM table_name_48 WHERE clean_ & _jerk < 142.5 AND bodyweight < 55.58 AND total__kg_ > 210
Write a SQL query that answers the following question: Tell me the object type which has an apparent magnitude more than 10.6 and declination of °44′07″
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (object_type VARCHAR, apparent_magnitude VARCHAR, declination___j2000__ VARCHAR)
SELECT object_type FROM table_name_28 WHERE apparent_magnitude > 10.6 AND declination___j2000__ = "°44′07″"
Write a SQL query that answers the following question: Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (declination___j2000__ VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR)
SELECT declination___j2000__ FROM table_name_12 WHERE apparent_magnitude > 10.4 AND ngc_number = 5112
Write a SQL query that answers the following question: Which event has a Method of submission (triangle choke), and an Opponent of thiago tavares?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (event VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_33 WHERE method = "submission (triangle choke)" AND opponent = "thiago tavares"
Write a SQL query that answers the following question: What is the result with a Round of 3, and an Opponent of keith wisniewski?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (res VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_32 WHERE round = "3" AND opponent = "keith wisniewski"
Write a SQL query that answers the following question: Which time has eddie miller as opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (time VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_11 WHERE opponent = "eddie miller"
Write a SQL query that answers the following question: What's the average Rd number for dane jackson with a pick number over 44?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (rd__number INTEGER, player VARCHAR, pick__number VARCHAR)
SELECT AVG(rd__number) FROM table_name_2 WHERE player = "dane jackson" AND pick__number > 44
Write a SQL query that answers the following question: What's the largest pick number for corrie d'alessio with a rd number over 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (pick__number INTEGER, player VARCHAR, rd__number VARCHAR)
SELECT MAX(pick__number) FROM table_name_34 WHERE player = "corrie d'alessio" AND rd__number > 6
Write a SQL query that answers the following question: Who was the visiting team at the Cavaliers game that had a score of 121–85?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (visitor VARCHAR, score VARCHAR)
SELECT visitor FROM table_name_29 WHERE score = "121–85"
Write a SQL query that answers the following question: On what date did Melbourne play as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_45 WHERE home_team = "melbourne"