Simple Question (Direct)
Simple Question
Q4786255
P166
Q24016972
USER
What was won by Archibald Campbell Fraser of Lovat ?
(Q4786255,P166,c(Q24016972))
action filter_type
action find
entity Q4786255
relation P166
type Q24016972
['Q4786255', 'P166', {'concept': 'Q24016972'}]
SELECT DISTINCT ?b WHERE { resource:Q4786255 property:P166 ?b . ?b rdf:type ontology:Q24016972 }
Archibald Campbell Fraser of Lovat
action filter_type
action find
entity Archibald Campbell Fraser of Lovat
relation award received
type type of distinction
['Archibald Campbell Fraser of Lovat', 'award received', {'concept': 'type of distinction'}]
SELECT DISTINCT ?b WHERE { resource:Archibald_Campbell_Fraser_of_Lovat property:award_received ?b . ?b rdf:type ontology:type_of_distinction }
[]
type of distinction
Q15631401
SYSTEM
Fellow of the Royal Society
Q15631401
(Q4786255,P166,c(Q24016972))
action filter_type
action find
entity Q4786255
relation P166
type Q24016972
The [ANSWER] was won by Archibald Campbell Fraser of Lovat
['Q4786255', 'P166', {'concept': 'Q24016972'}]
SELECT DISTINCT ?b WHERE { resource:Q4786255 property:P166 ?b . ?b rdf:type ontology:Q24016972 }
Fellow of the Royal Society
The Fellow of the Royal Society was won by Archibald Campbell Fraser of Lovat
Fellow of the Royal Society
action filter_type
action find
entity Archibald Campbell Fraser of Lovat
relation award received
type type of distinction
['Archibald Campbell Fraser of Lovat', 'award received', {'concept': 'type of distinction'}]
SELECT DISTINCT ?b WHERE { resource:Archibald_Campbell_Fraser_of_Lovat property:award_received ?b . ?b rdf:type ontology:type_of_distinction }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4786255
P921
Q191067
USER
Which article was primarily based on that person ?
(c(Q191067),P921,Q15631401)
action filter_type
action find_reverse
entity Q4786255
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q15631401']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q191067 . ?o property:P921 resource:Q4786255 }
Archibald Campbell Fraser of Lovat
action filter_type
action find_reverse
entity Archibald Campbell Fraser of Lovat
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Fellow of the Royal Society']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:article . ?o property:main_subject resource:Archibald_Campbell_Fraser_of_Lovat }
[]
article
Q19035445
SYSTEM
Fraser, Archibald Campbell (DNB00)
Q19035445
(c(Q191067),P921,Q15631401)
action filter_type
action find_reverse
entity Q4786255
relation P921
type Q191067
[ANSWER] was primarily based on that person
[{'concept': 'Q191067'}, 'P921', 'Q15631401']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q191067 . ?o property:P921 resource:Q4786255 }
Fraser, Archibald Campbell (DNB00)
Fraser, Archibald Campbell (DNB00) was primarily based on that person
Fraser, Archibald Campbell (DNB00)
action filter_type
action find_reverse
entity Archibald Campbell Fraser of Lovat
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Fellow of the Royal Society']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:article . ?o property:main_subject resource:Archibald_Campbell_Fraser_of_Lovat }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q19035445 Q4786255 Q5220826
P921
Q502895
USER
Is Archibald Campbell Fraser of Lovat and Danny Siegel a main subject of Q19035445 ?
(Q19035445,P921,Q4786255) (Q19035445,P921,Q5220826)
action is_in
entity Q19035445
action intersection
action find_reverse
entity Q4786255
relation P921
action find_reverse
entity Q5220826
relation P921
['Q19035445', 'P921', 'Q4786255'] ['Q19035445', 'P921', 'Q5220826']
ASK WHERE { resource:Q19035445 property:P921 resource:Q4786255 . resource:Q19035445 property:P921 resource:Q5220826 }
Fraser, Archibald Campbell (DNB00) Archibald Campbell Fraser of Lovat Danny Siegel
action is_in
entity Fraser, Archibald Campbell (DNB00)
action intersection
action find_reverse
entity Archibald Campbell Fraser of Lovat
relation main subject
action find_reverse
entity Danny Siegel
relation main subject
['Fraser, Archibald Campbell (DNB00)', 'main subject', 'Archibald Campbell Fraser of Lovat'] ['Fraser, Archibald Campbell (DNB00)', 'main subject', 'Danny Siegel']
ASK WHERE { resource:Fraser,_Archibald_Campbell_(DNB00) property:main_subject resource:Archibald_Campbell_Fraser_of_Lovat . resource:Fraser,_Archibald_Campbell_(DNB00) property:main_subject resource:Danny_Siegel }
[]
common name
SYSTEM
YES and NO respectively
(Q19035445,P921,Q4786255) (Q19035445,P921,Q5220826)
action is_in
entity Q19035445
action intersection
action find_reverse
entity Q4786255
relation P921
action find_reverse
entity Q5220826
relation P921
[ANSWER]
['Q19035445', 'P921', 'Q4786255'] ['Q19035445', 'P921', 'Q5220826']
ASK WHERE { resource:Q19035445 property:P921 resource:Q4786255 . resource:Q19035445 property:P921 resource:Q5220826 }
YES and NO respectively
action is_in
entity Fraser, Archibald Campbell (DNB00)
action intersection
action find_reverse
entity Archibald Campbell Fraser of Lovat
relation main subject
action find_reverse
entity Danny Siegel
relation main subject
['Fraser, Archibald Campbell (DNB00)', 'main subject', 'Archibald Campbell Fraser of Lovat'] ['Fraser, Archibald Campbell (DNB00)', 'main subject', 'Danny Siegel']
ASK WHERE { resource:Fraser,_Archibald_Campbell_(DNB00) property:main_subject resource:Archibald_Campbell_Fraser_of_Lovat . resource:Fraser,_Archibald_Campbell_(DNB00) property:main_subject resource:Danny_Siegel }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5728607 Q4786255
P7
Q502895
USER
Which people are siblings of Archibald Campbell Fraser of Lovat or Henry Stafford, 1st Earl of Wiltshire ?
OR((c(Q502895),P7,Q4786255), (c(Q502895),P7,Q5728607))
action filter_type
action union
action find_reverse
entity Q4786255
relation P7
action find_reverse
entity Q5728607
relation P7
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q4786255'], [{'concept': 'Q502895'}, 'P7', 'Q5728607']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P7 resource:Q4786255 } UNION { ?l property:P7 resource:Q5728607 } } . ?l rdf:type ontology:Q502895 }
Henry Stafford, 1st Earl of Wiltshire Archibald Campbell Fraser of Lovat
action filter_type
action union
action find_reverse
entity Archibald Campbell Fraser of Lovat
relation brother
action find_reverse
entity Henry Stafford, 1st Earl of Wiltshire
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Archibald Campbell Fraser of Lovat'], [{'concept': 'common name'}, 'brother', 'Henry Stafford, 1st Earl of Wiltshire']]}
SELECT DISTINCT ?l WHERE { { { ?l property:brother resource:Archibald_Campbell_Fraser_of_Lovat } UNION { ?l property:brother resource:Henry_Stafford,_1st_Earl_of_Wiltshire } } . ?l rdf:type ontology:common_name }
[]
common name
Q5964135 Q5363546 Q2562413 Q726243
SYSTEM
Simon Fraser, Elizabeth Stafford, Countess of Sussex, Anne Hastings, Countess of Huntingdon, Edward Stafford, 3rd Duke of Buckingham
Q5964135 Q5363546 Q2562413 Q726243
OR((c(Q502895),P7,Q4786255), (c(Q502895),P7,Q5728607))
action filter_type
action union
action find_reverse
entity Q4786255
relation P7
action find_reverse
entity Q5728607
relation P7
type Q502895
[ANSWERS]
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q4786255'], [{'concept': 'Q502895'}, 'P7', 'Q5728607']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P7 resource:Q4786255 } UNION { ?l property:P7 resource:Q5728607 } } . ?l rdf:type ontology:Q502895 }
Simon Fraser Elizabeth Stafford, Countess of Sussex Anne Hastings, Countess of Huntingdon Edward Stafford, 3rd Duke of Buckingham
Simon Fraser, Elizabeth Stafford, Countess of Sussex, Anne Hastings, Countess of Huntingdon and Edward Stafford, 3rd Duke of Buckingham are siblings of Archibald Campbell Fraser of Lovat or Henry Stafford, 1st Earl of Wiltshire
Simon Fraser Elizabeth Stafford, Countess of Sussex Anne Hastings, Countess of Huntingdon Edward Stafford, 3rd Duke of Buckingham
action filter_type
action union
action find_reverse
entity Archibald Campbell Fraser of Lovat
relation brother
action find_reverse
entity Henry Stafford, 1st Earl of Wiltshire
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Archibald Campbell Fraser of Lovat'], [{'concept': 'common name'}, 'brother', 'Henry Stafford, 1st Earl of Wiltshire']]}
SELECT DISTINCT ?l WHERE { { { ?l property:brother resource:Archibald_Campbell_Fraser_of_Lovat } UNION { ?l property:brother resource:Henry_Stafford,_1st_Earl_of_Wiltshire } } . ?l 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 can approximately 3547 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3547
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?m ) WHERE { ?h property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?m = 3547 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3547
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?m ) WHERE { ?h property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?m = 3547 ) }
[]
musical instrument common name
Q8355 Q1444
SYSTEM
violin, organ
Q8355 Q1444
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3547
[ANSWERS] can approximately 3547 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?m ) WHERE { ?h property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?m = 3547 ) }
violin organ
Violin and organ can approximately 3547 people perform with
violin organ
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3547
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?m ) WHERE { ?h property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?m = 3547 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1079815
P1303
Q502895
USER
Does Cai Yalin can play those musical instruments ?
(Q1079815,P1303,Q8355) (Q1079815,P1303,Q1444)
action is_in
entity prev_answer
action find
entity Q1079815
relation P1303
['Q1079815', 'P1303', 'Q8355'] ['Q1079815', 'P1303', 'Q1444']
ASK WHERE { VALUES ( ?u ) { ( resource:Q8355 ) ( resource:Q1444 ) } . resource:Q1079815 property:P1303 ?u }
Cai Yalin
action is_in
entity prev_answer
action find
entity Cai Yalin
relation instrument
['Cai Yalin', 'instrument', 'violin'] ['Cai Yalin', 'instrument', 'organ']
ASK WHERE { VALUES ( ?u ) { ( resource:violin ) ( resource:organ ) } . resource:Cai_Yalin property:instrument ?u }
[]
common name
SYSTEM
NO
(Q1079815,P1303,Q8355) (Q1079815,P1303,Q1444)
action is_in
entity prev_answer
action find
entity Q1079815
relation P1303
[ANSWER]
['Q1079815', 'P1303', 'Q8355'] ['Q1079815', 'P1303', 'Q1444']
ASK WHERE { VALUES ( ?u ) { ( resource:Q8355 ) ( resource:Q1444 ) } . resource:Q1079815 property:P1303 ?u }
No
action is_in
entity prev_answer
action find
entity Cai Yalin
relation instrument
['Cai Yalin', 'instrument', 'violin'] ['Cai Yalin', 'instrument', 'organ']
ASK WHERE { VALUES ( ?u ) { ( resource:violin ) ( resource:organ ) } . resource:Cai_Yalin property:instrument ?u }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4786255 Q7225000
P7
Q502895
USER
Is Jim Pettie the brother of Archibald Campbell Fraser of Lovat ?
(Q4786255,P7,Q7225000)
action is_in
entity Q7225000
action find
entity Q4786255
relation P7
['Q4786255', 'P7', 'Q7225000']
ASK WHERE { resource:Q4786255 property:P7 resource:Q7225000 }
Archibald Campbell Fraser of Lovat Jim Pettie
action is_in
entity Jim Pettie
action find
entity Archibald Campbell Fraser of Lovat
relation brother
['Archibald Campbell Fraser of Lovat', 'brother', 'Jim Pettie']
ASK WHERE { resource:Archibald_Campbell_Fraser_of_Lovat property:brother resource:Jim_Pettie }
[]
common name
SYSTEM
NO
(Q4786255,P7,Q7225000)
action is_in
entity Q7225000
action find
entity Q4786255
relation P7
[ANSWER]
['Q4786255', 'P7', 'Q7225000']
ASK WHERE { resource:Q4786255 property:P7 resource:Q7225000 }
No
action is_in
entity Jim Pettie
action find
entity Archibald Campbell Fraser of Lovat
relation brother
['Archibald Campbell Fraser of Lovat', 'brother', 'Jim Pettie']
ASK WHERE { resource:Archibald_Campbell_Fraser_of_Lovat property:brother resource:Jim_Pettie }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q34379 Q340169 Q1792379
USER
Which musical instruments are demonstrated in max number of medias or art genres ?
(c(Q340169)|c(Q1792379),P180,c(Q34379))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
action find_reverse_tuple_counts
relation P180
type Q34379
type Q1792379
[[{'concept': 'Q340169'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?o ) { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:P180 ?u . ?u rdf:type ontology:Q34379 . ?h rdf:type ontology:Q340169 } UNION { ?h property:P180 ?u . ?u rdf:type ontology:Q34379 . ?h rdf:type ontology:Q1792379 } } GROUP BY ?u } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?i ) { ( ontology:Q1792379 ) ( ontology:Q340169 ) } . ?e rdf:type ?i } GROUP BY ?f } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
action find_reverse_tuple_counts
relation depicts
type musical instrument
type art genre
[[{'concept': 'media'}, {'concept': 'art genre'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?o ) { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:depicts ?u . ?u rdf:type ontology:musical_instrument . ?h rdf:type ontology:media } UNION { ?h property:depicts ?u . ?u rdf:type ontology:musical_instrument . ?h rdf:type ontology:art_genre } } GROUP BY ?u } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?i ) { ( ontology:art_genre ) ( ontology:media ) } . ?e rdf:type ?i } GROUP BY ?f } }
[]
musical instrument media art genre
Q80019 Q8355 Q11404
SYSTEM
double bass, violin, drum
Q80019 Q8355 Q11404
(c(Q340169)|c(Q1792379),P180,c(Q34379))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
action find_reverse_tuple_counts
relation P180
type Q34379
type Q1792379
[ANSWERS] are demonstrated in max number of medias or art genres
[[{'concept': 'Q340169'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?o ) { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:P180 ?u . ?u rdf:type ontology:Q34379 . ?h rdf:type ontology:Q340169 } UNION { ?h property:P180 ?u . ?u rdf:type ontology:Q34379 . ?h rdf:type ontology:Q1792379 } } GROUP BY ?u } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?i ) { ( ontology:Q1792379 ) ( ontology:Q340169 ) } . ?e rdf:type ?i } GROUP BY ?f } }
double bass violin drum
Double bass, violin and drum are demonstrated in max number of medias or art genres
double bass violin drum
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
action find_reverse_tuple_counts
relation depicts
type musical instrument
type art genre
[[{'concept': 'media'}, {'concept': 'art genre'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?o ) { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:depicts ?u . ?u rdf:type ontology:musical_instrument . ?h rdf:type ontology:media } UNION { ?h property:depicts ?u . ?u rdf:type ontology:musical_instrument . ?h rdf:type ontology:art_genre } } GROUP BY ?u } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?i ) { ( ontology:art_genre ) ( ontology:media ) } . ?e rdf:type ?i } GROUP BY ?f } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q4786255
P21 P7
Q502895
USER
Which people had Archibald Campbell Fraser of Lovat as brother and are a male ?
AND((c(Q502895),P7,Q4786255), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q4786255
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q4786255'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?b WHERE { ?b property:P21 resource:Q6581097 . ?b property:P7 resource:Q4786255 . ?b rdf:type ontology:Q502895 }
male Archibald Campbell Fraser of Lovat
action filter_type
action intersection
action find_reverse
entity Archibald Campbell Fraser of Lovat
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Archibald Campbell Fraser of Lovat'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?b WHERE { ?b property:gender resource:male . ?b property:brother resource:Archibald_Campbell_Fraser_of_Lovat . ?b rdf:type ontology:common_name }
[]
common name
Q5964135
SYSTEM
Simon Fraser
Q5964135
AND((c(Q502895),P7,Q4786255), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q4786255
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] had Archibald Campbell Fraser of Lovat as brother and are a male
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q4786255'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?b WHERE { ?b property:P21 resource:Q6581097 . ?b property:P7 resource:Q4786255 . ?b rdf:type ontology:Q502895 }
Simon Fraser
Simon Fraser had Archibald Campbell Fraser of Lovat as brother and are a male
Simon Fraser
action filter_type
action intersection
action find_reverse
entity Archibald Campbell Fraser of Lovat
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Archibald Campbell Fraser of Lovat'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?b WHERE { ?b property:gender resource:male . ?b property:brother resource:Archibald_Campbell_Fraser_of_Lovat . ?b rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q128309
P1303
Q34379 Q502895
USER
How many musical instruments can less number of people perform with than drum kit ?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q128309
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?o ) WHERE { ?q rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 . ?l property:P1303 ?q } GROUP BY ?q } . FILTER ( ?o < ?e ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:P1303 resource:Q128309 . ?g rdf:type ontology:Q502895 } } }
drum kit
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity drum kit
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?o ) WHERE { ?q rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name . ?l property:instrument ?q } GROUP BY ?q } . FILTER ( ?o < ?e ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:instrument resource:drum_kit . ?g rdf:type ontology:common_name } } }
[]
musical instrument common name
SYSTEM
62
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q128309
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?o ) WHERE { ?q rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 . ?l property:P1303 ?q } GROUP BY ?q } . FILTER ( ?o < ?e ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:P1303 resource:Q128309 . ?g rdf:type ontology:Q502895 } } }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
62
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity drum kit
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?o ) WHERE { ?q rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name . ?l property:instrument ?q } GROUP BY ?q } . FILTER ( ?o < ?e ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:instrument resource:drum_kit . ?g rdf:type ontology:common_name } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q497224
P1303
Q34379 Q502895
USER
And also tell me about Kayamb?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q497224
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:P1303 resource:Q497224 . ?t rdf:type ontology:Q502895 } } . FILTER ( ?o < ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?q } }
Kayamb
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Kayamb
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:instrument resource:Kayamb . ?t rdf:type ontology:common_name } } . FILTER ( ?o < ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?q } }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q497224
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:P1303 resource:Q497224 . ?t rdf:type ontology:Q502895 } } . FILTER ( ?o < ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?q } }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Kayamb
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:instrument resource:Kayamb . ?t rdf:type ontology:common_name } } . FILTER ( ?o < ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?q } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q15619164
USER
Which abstract beings have been dubbed by max number of people ?
(c(Q15619164),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15619164
type Q502895
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?y ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?d ) WHERE { ?r rdf:type ontology:Q15619164 . ?m rdf:type ontology:Q502895 . ?r property:P725 ?m } GROUP BY ?r } } . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?j ) WHERE { ?h property:P725 ?z . ?h rdf:type ontology:Q15619164 . ?z rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?j = ?y ) }
action argmax
action find_tuple_counts
relation voice actor
type abstract being
type common name
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?y ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?d ) WHERE { ?r rdf:type ontology:abstract_being . ?m rdf:type ontology:common_name . ?r property:voice_actor ?m } GROUP BY ?r } } . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?j ) WHERE { ?h property:voice_actor ?z . ?h rdf:type ontology:abstract_being . ?z rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?j = ?y ) }
[]
common name abstract being
Q5409355
SYSTEM
Fluttershy
Q5409355
(c(Q15619164),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15619164
type Q502895
[ANSWER] have been dubbed by max number of people
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?y ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?d ) WHERE { ?r rdf:type ontology:Q15619164 . ?m rdf:type ontology:Q502895 . ?r property:P725 ?m } GROUP BY ?r } } . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?j ) WHERE { ?h property:P725 ?z . ?h rdf:type ontology:Q15619164 . ?z rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?j = ?y ) }
Fluttershy
Fluttershy have been dubbed by max number of people
Fluttershy
action argmax
action find_tuple_counts
relation voice actor
type abstract being
type common name
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?y ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?d ) WHERE { ?r rdf:type ontology:abstract_being . ?m rdf:type ontology:common_name . ?r property:voice_actor ?m } GROUP BY ?r } } . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?j ) WHERE { ?h property:voice_actor ?z . ?h rdf:type ontology:abstract_being . ?z rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?j = ?y ) }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5409355 Q2339854 Q10856320
P725
Q502895
USER
Did Fluttershy have its voice dubbing done by Dirc Potter and Shōta Taniguchi ?
(Q5409355,P725,Q2339854) (Q5409355,P725,Q10856320)
action is_in
entity Q5409355
action intersection
action find_reverse
entity Q2339854
relation P725
action find_reverse
entity Q10856320
relation P725
['Q5409355', 'P725', 'Q2339854'] ['Q5409355', 'P725', 'Q10856320']
ASK WHERE { resource:Q5409355 property:P725 resource:Q2339854 . resource:Q5409355 property:P725 resource:Q10856320 }
Fluttershy Dirc Potter Shōta Taniguchi
action is_in
entity Fluttershy
action intersection
action find_reverse
entity Dirc Potter
relation voice actor
action find_reverse
entity Shōta Taniguchi
relation voice actor
['Fluttershy', 'voice actor', 'Dirc Potter'] ['Fluttershy', 'voice actor', 'Shōta Taniguchi']
ASK WHERE { resource:Fluttershy property:voice_actor resource:Dirc_Potter . resource:Fluttershy property:voice_actor resource:Shōta_Taniguchi }
[]
common name
SYSTEM
NO
(Q5409355,P725,Q2339854) (Q5409355,P725,Q10856320)
action is_in
entity Q5409355
action intersection
action find_reverse
entity Q2339854
relation P725
action find_reverse
entity Q10856320
relation P725
[ANSWER]
['Q5409355', 'P725', 'Q2339854'] ['Q5409355', 'P725', 'Q10856320']
ASK WHERE { resource:Q5409355 property:P725 resource:Q2339854 . resource:Q5409355 property:P725 resource:Q10856320 }
No
action is_in
entity Fluttershy
action intersection
action find_reverse
entity Dirc Potter
relation voice actor
action find_reverse
entity Shōta Taniguchi
relation voice actor
['Fluttershy', 'voice actor', 'Dirc Potter'] ['Fluttershy', 'voice actor', 'Shōta Taniguchi']
ASK WHERE { resource:Fluttershy property:voice_actor resource:Dirc_Potter . resource:Fluttershy property:voice_actor resource:Shōta_Taniguchi }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19109784 Q19035445
P921
Q502895
USER
Which people were the main subjects in the work Fraser, Archibald Campbell (DNB00) or Mary (d.1463) (DNB00) ?
OR((Q19035445,P921,c(Q502895)), (Q19109784,P921,c(Q502895)))
action filter_type
action union
action find
entity Q19035445
relation P921
action find
entity Q19109784
relation P921
type Q502895
{'OR': [['Q19035445', 'P921', {'concept': 'Q502895'}], ['Q19109784', 'P921', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . { { resource:Q19109784 property:P921 ?t } UNION { resource:Q19035445 property:P921 ?t } } }
Mary (d.1463) (DNB00) Fraser, Archibald Campbell (DNB00)
action filter_type
action union
action find
entity Fraser, Archibald Campbell (DNB00)
relation main subject
action find
entity Mary (d.1463) (DNB00)
relation main subject
type common name
{'OR': [['Fraser, Archibald Campbell (DNB00)', 'main subject', {'concept': 'common name'}], ['Mary (d.1463) (DNB00)', 'main subject', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . { { resource:Mary_(d.1463)_(DNB00) property:main_subject ?t } UNION { resource:Fraser,_Archibald_Campbell_(DNB00) property:main_subject ?t } } }
[]
common name
Q4786255 Q60560
SYSTEM
Archibald Campbell Fraser of Lovat, Mary of Guelders
Q4786255 Q60560
OR((Q19035445,P921,c(Q502895)), (Q19109784,P921,c(Q502895)))
action filter_type
action union
action find
entity Q19035445
relation P921
action find
entity Q19109784
relation P921
type Q502895
[ANSWERS] were the main subjects in the work Fraser, Archibald Campbell (DNB00) or Mary (d.1463) (DNB00)
{'OR': [['Q19035445', 'P921', {'concept': 'Q502895'}], ['Q19109784', 'P921', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . { { resource:Q19109784 property:P921 ?t } UNION { resource:Q19035445 property:P921 ?t } } }
Archibald Campbell Fraser of Lovat Mary of Guelders
Archibald Campbell Fraser of Lovat and Mary of Guelders were the main subjects in the work Fraser, Archibald Campbell (DNB00) or Mary (d.1463) (DNB00)
Archibald Campbell Fraser of Lovat Mary of Guelders
action filter_type
action union
action find
entity Fraser, Archibald Campbell (DNB00)
relation main subject
action find
entity Mary (d.1463) (DNB00)
relation main subject
type common name
{'OR': [['Fraser, Archibald Campbell (DNB00)', 'main subject', {'concept': 'common name'}], ['Mary (d.1463) (DNB00)', 'main subject', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . { { resource:Mary_(d.1463)_(DNB00) property:main_subject ?t } UNION { resource:Fraser,_Archibald_Campbell_(DNB00) property:main_subject ?t } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4786255 Q60560
P21
Q290
USER
Which sexes do those people belong to ?
(Q4786255,P21,c(Q290)) (Q60560,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q4786255', 'P21', {'concept': 'Q290'}] ['Q60560', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?d ) { ( resource:Q4786255 ) ( resource:Q60560 ) } . ?d property:P21 ?z . ?z rdf:type ontology:Q290 }
Archibald Campbell Fraser of Lovat Mary of Guelders
action filter_type
action find
entity prev_answer
relation gender
type sex
['Archibald Campbell Fraser of Lovat', 'gender', {'concept': 'sex'}] ['Mary of Guelders', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?d ) { ( resource:Archibald_Campbell_Fraser_of_Lovat ) ( resource:Mary_of_Guelders ) } . ?d property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097 Q6581072
SYSTEM
male, female
Q6581097 Q6581072
(Q4786255,P21,c(Q290)) (Q60560,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people belong to [ANSWERS]
['Q4786255', 'P21', {'concept': 'Q290'}] ['Q60560', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?d ) { ( resource:Q4786255 ) ( resource:Q60560 ) } . ?d property:P21 ?z . ?z rdf:type ontology:Q290 }
male female
Those people belong to male and female
male female
action filter_type
action find
entity prev_answer
relation gender
type sex
['Archibald Campbell Fraser of Lovat', 'gender', {'concept': 'sex'}] ['Mary of Guelders', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?d ) { ( resource:Archibald_Campbell_Fraser_of_Lovat ) ( resource:Mary_of_Guelders ) } . ?d property:gender ?z . ?z rdf:type ontology:sex }
[]