Simple Question (Direct)
Simple Question
Q1405662
P937
Q515
USER
Which is the work location of Gay Mitchell ?
(Q1405662,P937,c(Q515))
action filter_type
action find
entity Q1405662
relation P937
type Q515
['Q1405662', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q1405662 property:P937 ?c . ?c rdf:type ontology:Q515 }
Gay Mitchell
action filter_type
action find
entity Gay Mitchell
relation work location
type city
['Gay Mitchell', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Gay_Mitchell property:work_location ?c . ?c rdf:type ontology:city }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q1405662,P937,c(Q515))
action filter_type
action find
entity Q1405662
relation P937
type Q515
Is the work location of Gay Mitchell in [ANSWER]
['Q1405662', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q1405662 property:P937 ?c . ?c rdf:type ontology:Q515 }
Strasbourg
Is the work location of Gay Mitchell in Strasbourg
Strasbourg
action filter_type
action find
entity Gay Mitchell
relation work location
type city
['Gay Mitchell', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Gay_Mitchell property:work_location ?c . ?c rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1405662
P1412
Q34770
USER
Which language is spoken by Gay Mitchell ?
(Q1405662,P1412,c(Q34770))
action filter_type
action find
entity Q1405662
relation P1412
type Q34770
['Q1405662', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q34770 . resource:Q1405662 property:P1412 ?h }
Gay Mitchell
action filter_type
action find
entity Gay Mitchell
relation languages spoken, written or signed
type language
['Gay Mitchell', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:language . resource:Gay_Mitchell property:languages_spoken,_written_or_signed ?h }
[]
language
Q1860
SYSTEM
English
Q1860
(Q1405662,P1412,c(Q34770))
action filter_type
action find
entity Q1405662
relation P1412
type Q34770
[ANSWER] is spoken by Gay Mitchell
['Q1405662', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q34770 . resource:Q1405662 property:P1412 ?h }
English
English is spoken by Gay Mitchell
English
action filter_type
action find
entity Gay Mitchell
relation languages spoken, written or signed
type language
['Gay Mitchell', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:language . resource:Gay_Mitchell property:languages_spoken,_written_or_signed ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1405662
P69
Q3918
USER
Which universities are the alma mater of Gay Mitchell ?
(Q1405662,P69,c(Q3918))
action filter_type
action find
entity Q1405662
relation P69
type Q3918
['Q1405662', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q3918 . resource:Q1405662 property:P69 ?r }
Gay Mitchell
action filter_type
action find
entity Gay Mitchell
relation educated at
type university
['Gay Mitchell', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:university . resource:Gay_Mitchell property:educated_at ?r }
[]
university
Q877925 Q3098071
SYSTEM
Queen's University Belfast, Dublin Institute of Technology
Q877925 Q3098071
(Q1405662,P69,c(Q3918))
action filter_type
action find
entity Q1405662
relation P69
type Q3918
[ANSWERS] are the alma mater of Gay Mitchell
['Q1405662', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q3918 . resource:Q1405662 property:P69 ?r }
Queen's University Belfast Dublin Institute of Technology
Queen's University Belfast and Dublin Institute of Technology are the alma mater of Gay Mitchell
Queen's University Belfast Dublin Institute of Technology
action filter_type
action find
entity Gay Mitchell
relation educated at
type university
['Gay Mitchell', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:university . resource:Gay_Mitchell property:educated_at ?r }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1405662
P69
Q502895
USER
Were Gay Mitchell educated at those universities ?
(Q1405662,P69,Q877925) (Q1405662,P69,Q3098071)
action is_in
entity prev_answer
action find
entity Q1405662
relation P69
['Q1405662', 'P69', 'Q877925'] ['Q1405662', 'P69', 'Q3098071']
ASK WHERE { VALUES ( ?q ) { ( resource:Q877925 ) ( resource:Q3098071 ) } . resource:Q1405662 property:P69 ?q }
Gay Mitchell
action is_in
entity prev_answer
action find
entity Gay Mitchell
relation educated at
['Gay Mitchell', 'educated at', "Queen's University Belfast"] ['Gay Mitchell', 'educated at', 'Dublin Institute of Technology']
ASK WHERE { VALUES ( ?q ) { ( resource:Queen's_University_Belfast ) ( resource:Dublin_Institute_of_Technology ) } . resource:Gay_Mitchell property:educated_at ?q }
[]
common name
SYSTEM
YES
(Q1405662,P69,Q877925) (Q1405662,P69,Q3098071)
action is_in
entity prev_answer
action find
entity Q1405662
relation P69
[ANSWER]
['Q1405662', 'P69', 'Q877925'] ['Q1405662', 'P69', 'Q3098071']
ASK WHERE { VALUES ( ?q ) { ( resource:Q877925 ) ( resource:Q3098071 ) } . resource:Q1405662 property:P69 ?q }
Yes
action is_in
entity prev_answer
action find
entity Gay Mitchell
relation educated at
['Gay Mitchell', 'educated at', "Queen's University Belfast"] ['Gay Mitchell', 'educated at', 'Dublin Institute of Technology']
ASK WHERE { VALUES ( ?q ) { ( resource:Queen's_University_Belfast ) ( resource:Dublin_Institute_of_Technology ) } . resource:Gay_Mitchell property:educated_at ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q209842
P112
Q502895
USER
What is the name of the founder of University of Paris ?
(Q209842,P112,c(Q502895))
action filter_type
action find
entity Q209842
relation P112
type Q502895
['Q209842', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q209842 property:P112 ?f }
University of Paris
action filter_type
action find
entity University of Paris
relation founder
type common name
['University of Paris', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:University_of_Paris property:founder ?f }
[]
common name
Q508679
SYSTEM
Robert de Sorbon
Q508679
(Q209842,P112,c(Q502895))
action filter_type
action find
entity Q209842
relation P112
type Q502895
The name of the founder of University of Paris is Louis [ANSWER]
['Q209842', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q209842 property:P112 ?f }
Robert de Sorbon
The name of the founder of University of Paris is Louis Robert de Sorbon
Robert de Sorbon
action filter_type
action find
entity University of Paris
relation founder
type common name
['University of Paris', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:University_of_Paris property:founder ?f }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q396170
Q502895
USER
And what about Agrarian Party of Russia?
(Q396170,P112,c(Q502895))
action filter_type
action find
entity Q396170
relation P112
type Q502895
['Q396170', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q396170 property:P112 ?r . ?r rdf:type ontology:Q502895 }
Agrarian Party of Russia
action filter_type
action find
entity Agrarian Party of Russia
relation founder
type common name
['Agrarian Party of Russia', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Agrarian_Party_of_Russia property:founder ?r . ?r rdf:type ontology:common_name }
[]
common name
Q553544
SYSTEM
Vasily Starodubtsev
Q553544
(Q396170,P112,c(Q502895))
action filter_type
action find
entity Q396170
relation P112
type Q502895
[ANSWER]
['Q396170', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q396170 property:P112 ?r . ?r rdf:type ontology:Q502895 }
Vasily Starodubtsev
Vasily Starodubtsev
action filter_type
action find
entity Agrarian Party of Russia
relation founder
type common name
['Agrarian Party of Russia', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Agrarian_Party_of_Russia property:founder ?r . ?r rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do atleast 2490 people know to play ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2490
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?x >= 2490 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2490
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?x >= 2490 ) }
[]
musical instrument common name
Q5994 Q8355
SYSTEM
piano, violin
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2490
Atleast 2490 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?x >= 2490 ) }
piano violin
Atleast 2490 people know about piano and violin
piano violin
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2490
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?x >= 2490 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q5994 Q8355
P870
Q188451
USER
Which music genres employs piano and violin as musical instrument ?
(c(Q188451),P870,Q5994) (c(Q188451),P870,Q8355)
action union
action filter_type
action find_reverse
entity Q5994
relation P870
type Q188451
action filter_type
action find_reverse
entity Q8355
relation P870
type Q188451
[{'concept': 'Q188451'}, 'P870', 'Q5994'] [{'concept': 'Q188451'}, 'P870', 'Q8355']
SELECT DISTINCT ?x WHERE { VALUES ( ?n ) { ( resource:Q5994 ) ( resource:Q8355 ) } . ?x property:P870 ?n }
piano violin
action union
action filter_type
action find_reverse
entity piano
relation instrumentation
type music genre
action filter_type
action find_reverse
entity violin
relation instrumentation
type music genre
[{'concept': 'music genre'}, 'instrumentation', 'piano'] [{'concept': 'music genre'}, 'instrumentation', 'violin']
SELECT DISTINCT ?x WHERE { VALUES ( ?n ) { ( resource:piano ) ( resource:violin ) } . ?x property:instrumentation ?n }
[]
music genre
Q1154601 Q669358 Q1154601
SYSTEM
Violin Sonata No. 5 for 2nd, Violin Sonata No. 9 for 1st, 3rd
Q2457349 Q146423 Q5903984 Q550350 Q1999051 Q2375280 Q3490252 Q1635731 Q3540015 Q3066529 Q1300778 Q1271144 Q3490268 Q1635740 Q3490212 Q3490207 Q3490205 Q2270897 Q3490238 Q1635353 Q3490221 Q2252472 Q3069033 Q3393250 Q15975837 Q2719749 Q3069060 Q1489755 Q3069052 Q1395862 Q15632116 Q2269974 Q831870 Q54080 Q3490122 Q3490133 Q2212571 Q3073254 Q3490184 Q3490181 Q3490199 Q3490195 Q3133281 Q1546995 Q1067735 Q2352641 Q428956 Q2719264 Q15975838 Q1053078 Q15975840 Q5058312 Q3490084 Q3490081 Q2412736 Q1890794 Q4428775 Q2735761 Q1154601 Q669358 Q264268 Q1053089 Q146492 Q2181451 Q3490213 Q1892808 Q20646569 Q20646570 Q2457349 Q550350 Q2375280 Q1635731 Q20646571 Q1300778 Q1271144 Q3490268 Q1635740 Q3490212 Q3490207 Q3490205 Q2270897 Q1635353 Q3490221 Q2252472 Q3069033 Q2719749 Q3069060 Q3069052 Q15632116 Q2269974 Q3490122 Q3073254 Q3490184 Q3490181 Q3490199 Q3490195 Q3133281 Q7933385 Q1067735 Q2352641 Q428956 Q2412736 Q4428775 Q1154601 Q669358 Q264268 Q3490251 Q2181451 Q3490213 Q1892808
(c(Q188451),P870,Q5994) (c(Q188451),P870,Q8355)
action union
action filter_type
action find_reverse
entity Q5994
relation P870
type Q188451
action filter_type
action find_reverse
entity Q8355
relation P870
type Q188451
[ANSWERS]
[{'concept': 'Q188451'}, 'P870', 'Q5994'] [{'concept': 'Q188451'}, 'P870', 'Q8355']
SELECT DISTINCT ?x WHERE { VALUES ( ?n ) { ( resource:Q5994 ) ( resource:Q8355 ) } . ?x property:P870 ?n }
Violin Sonata No. 1 Piano Sonata No. 20 Horn Sonata Violin Sonata No. 28 clarinet sonata Violin Sonata in F major (Mendelssohn) Oboe Sonata Violin Sonata No. 1 Trois morceaux en forme de poire Fantaisie in F minor Violin Sonata No. 8 Violin Sonata No. 3 Violin Sonata in A Violin Sonata No. 4 Violin Sonata No. 3 Violin Sonata No. 2 Violin Sonata No. 1 F-A-E Sonata Cello Sonata No. 1 (Fauré) Violin Sonata No. 2 Violin Sonatas Violin Sonata No. 29 Violin Sonata No. 33 Pohádka Sonata in C minor, D. 958 Violin Sonata Violin Sonata No. 35 Oboe Sonata Violin Sonata No. 27 Fantasie in C Violin Sonata No. 25 Phantasy for Violin and Piano Sonata for Two Pianos and Percussion Viola Sonata Violin Sonata Piano Sonata No. 1 (Schumann) Sonate for piano (Dutilleux) Violin Sonata No. 1 Violin Sonata No. 24 Violin Sonata in F minor Violin Sonata Violin Sonata Violin Sonata No. 32 piano sonata Violin Sonata No. 10 Violin Sonata No. 2 Violin Sonata No. 6 Sonatas and Interludes Sonata in A major, D. 959 Cello Sonatas Nos. 1 and 2 Sonata in B-flat major, D. 960 Cello Sonata Sonata for Clarinet and Piano Viola Sonata (Shostakovich) Violin Sonata in F major (Mendelssohn) The Entertainer Violin Sonata Sonata for Two Pianos Violin Sonata No. 9 Violin Sonata No. 5 Violin Sonata No. 2 Cello Sonatas Nos. 4 and 5 Piano Sonatas Nos. 19 and 20 Violin Sonata Violin Sonata No. 3 Violin Sonata No. 7 Sonata No. 1 in G minor, BWV 1001 Sonata No. 2 in A minor, BWV 1003 Violin Sonata No. 1 Violin Sonata No. 28 Violin Sonata in F major (Mendelssohn) Violin Sonata No. 1 Sonata No. 3 in C major, BWV 1005 Violin Sonata No. 8 Violin Sonata No. 3 Violin Sonata in A Violin Sonata No. 4 Violin Sonata No. 3 Violin Sonata No. 2 Violin Sonata No. 1 F-A-E Sonata Violin Sonata No. 2 Violin Sonatas Violin Sonata No. 29 Violin Sonata No. 33 Violin Sonata Violin Sonata No. 35 Violin Sonata No. 27 Violin Sonata No. 25 Phantasy for Violin and Piano Violin Sonata Violin Sonata No. 1 Violin Sonata No. 24 Violin Sonata in F minor Violin Sonata Violin Sonata Violin Sonata No. 32 Violin sonata Violin Sonata No. 10 Violin Sonata No. 2 Violin Sonata No. 6 Violin Sonata in F major (Mendelssohn) Violin Sonata Violin Sonata No. 9 Violin Sonata No. 5 Violin Sonata No. 2 Rosary Sonatas Violin Sonata Violin Sonata No. 3 Violin Sonata No. 7
Violin Sonata No. 9, Violin Sonata No. 5 and Violin Sonata No. 9 employ piano and violin as musical instrument
Violin Sonata No. 9 Violin Sonata No. 5 Violin Sonata No. 9
action union
action filter_type
action find_reverse
entity piano
relation instrumentation
type music genre
action filter_type
action find_reverse
entity violin
relation instrumentation
type music genre
[{'concept': 'music genre'}, 'instrumentation', 'piano'] [{'concept': 'music genre'}, 'instrumentation', 'violin']
SELECT DISTINCT ?x WHERE { VALUES ( ?n ) { ( resource:piano ) ( resource:violin ) } . ?x property:instrumentation ?n }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1154601
P138
Q234460
USER
Which text has that music genre as its namesake ?
(c(Q234460),P138,Q1154601)
action filter_type
action find_reverse
entity Q1154601
relation P138
type Q234460
[{'concept': 'Q234460'}, 'P138', 'Q1154601']
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q1154601 . ?f rdf:type ontology:Q234460 }
Violin Sonata No. 9
action filter_type
action find_reverse
entity Violin Sonata No. 9
relation named after
type text
[{'concept': 'text'}, 'named after', 'Violin Sonata No. 9']
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Violin_Sonata_No._9 . ?f rdf:type ontology:text }
[]
text
Clarification for simple ques.
Q1154601
SYSTEM
Did you mean Violin Sonata No. 9 ?
Q1154601 Q669358 Q1154601
(c(Q234460),P138,Q1154601) (c(Q234460),P138,Q669358) (c(Q234460),P138,Q1154601)
[ANSWER]
[{'concept': 'Q234460'}, 'P138', 'Q1154601'] [{'concept': 'Q234460'}, 'P138', 'Q669358'] [{'concept': 'Q234460'}, 'P138', 'Q1154601']
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q1154601 . ?f rdf:type ontology:Q234460 }
Violin Sonata No. 9 Violin Sonata No. 5 Violin Sonata No. 9
Did you mean Violin Sonata No. 9 ?
Violin Sonata No. 9
[{'concept': 'text'}, 'named after', 'Violin Sonata No. 9'] [{'concept': 'text'}, 'named after', 'Violin Sonata No. 5'] [{'concept': 'text'}, 'named after', 'Violin Sonata No. 9']
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Violin_Sonata_No._9 . ?f rdf:type ontology:text }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q234460),P138,Q1154601)
[{'concept': 'Q234460'}, 'P138', 'Q1154601']
[{'concept': 'text'}, 'named after', 'Violin Sonata No. 9']
[]
Q1214091
SYSTEM
The Kreutzer Sonata
Q1214091
(c(Q234460),P138,Q1154601)
action filter_type
action find_reverse
entity Q1154601
relation P138
type Q234460
[ANSWER] has that music genre as its namesake
[{'concept': 'Q234460'}, 'P138', 'Q1154601']
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q1154601 . ?f rdf:type ontology:Q234460 }
The Kreutzer Sonata
The Kreutzer Sonata has that music genre as its namesake
The Kreutzer Sonata
action filter_type
action find_reverse
entity Violin Sonata No. 9
relation named after
type text
[{'concept': 'text'}, 'named after', 'Violin Sonata No. 9']
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Violin_Sonata_No._9 . ?f rdf:type ontology:text }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1214091 Q159
P495
Q15617994
USER
Is Russia the origin of that text ?
(Q1214091,P495,Q159)
action is_in
entity Q159
action find
entity Q1214091
relation P495
['Q1214091', 'P495', 'Q159']
ASK WHERE { resource:Q1214091 property:P495 resource:Q159 }
The Kreutzer Sonata Russia
action is_in
entity Russia
action find
entity The Kreutzer Sonata
relation country of origin
['The Kreutzer Sonata', 'country of origin', 'Russia']
ASK WHERE { resource:The_Kreutzer_Sonata property:country_of_origin resource:Russia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1214091,P495,Q159)
action is_in
entity Q159
action find
entity Q1214091
relation P495
[ANSWER]
['Q1214091', 'P495', 'Q159']
ASK WHERE { resource:Q1214091 property:P495 resource:Q159 }
Yes
action is_in
entity Russia
action find
entity The Kreutzer Sonata
relation country of origin
['The Kreutzer Sonata', 'country of origin', 'Russia']
ASK WHERE { resource:The_Kreutzer_Sonata property:country_of_origin resource:Russia }
[]