Simple Question (Direct)
Simple Question
Q156193
P1303
Q34379
USER
Which musical instrument is played by Pierre Boulez ?
(Q156193,P1303,c(Q34379))
action filter_type
action find
entity Q156193
relation P1303
type Q34379
['Q156193', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { resource:Q156193 property:P1303 ?n . ?n rdf:type ontology:Q34379 }
Pierre Boulez
action filter_type
action find
entity Pierre Boulez
relation instrument
type musical instrument
['Pierre Boulez', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { resource:Pierre_Boulez property:instrument ?n . ?n rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q156193,P1303,c(Q34379))
action filter_type
action find
entity Q156193
relation P1303
type Q34379
[ANSWER] is played by Pierre Boulez
['Q156193', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { resource:Q156193 property:P1303 ?n . ?n rdf:type ontology:Q34379 }
piano
Piano is played by Pierre Boulez
piano
action filter_type
action find
entity Pierre Boulez
relation instrument
type musical instrument
['Pierre Boulez', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { resource:Pierre_Boulez property:instrument ?n . ?n rdf:type ontology:musical_instrument }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q156193
P112
Q2088357
USER
Which musical ensemble was started by that person ?
(c(Q2088357),P112,Q5994)
action filter_type
action find_reverse
entity Q156193
relation P112
type Q2088357
[{'concept': 'Q2088357'}, 'P112', 'Q5994']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q2088357 . ?f property:P112 resource:Q156193 }
Pierre Boulez
action filter_type
action find_reverse
entity Pierre Boulez
relation founder
type musical ensemble
[{'concept': 'musical ensemble'}, 'founder', 'piano']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:musical_ensemble . ?f property:founder resource:Pierre_Boulez }
[]
musical ensemble
Q125921
SYSTEM
Ensemble InterContemporain
Q125921
(c(Q2088357),P112,Q5994)
action filter_type
action find_reverse
entity Q156193
relation P112
type Q2088357
[ANSWER] was started by that person
[{'concept': 'Q2088357'}, 'P112', 'Q5994']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q2088357 . ?f property:P112 resource:Q156193 }
Ensemble InterContemporain
Ensemble InterContemporain was started by that person
Ensemble InterContemporain
action filter_type
action find_reverse
entity Pierre Boulez
relation founder
type musical ensemble
[{'concept': 'musical ensemble'}, 'founder', 'piano']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:musical_ensemble . ?f property:founder resource:Pierre_Boulez }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P737
Q2088357 Q215380
USER
Which bands were influenced by atleast 1 musical ensemble ?
(c(Q215380),P737,c(Q2088357))
action atleast
action find_tuple_counts
relation P737
type Q215380
type Q2088357
value 1
[{'concept': 'Q215380'}, 'P737', {'concept': 'Q2088357'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?z ) WHERE { ?i property:P737 ?y . ?y rdf:type ontology:Q2088357 . ?i rdf:type ontology:Q215380 } GROUP BY ?i } . FILTER ( ?z >= 1 ) }
action atleast
action find_tuple_counts
relation influenced by
type band
type musical ensemble
value 1
[{'concept': 'band'}, 'influenced by', {'concept': 'musical ensemble'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?z ) WHERE { ?i property:influenced_by ?y . ?y rdf:type ontology:musical_ensemble . ?i rdf:type ontology:band } GROUP BY ?i } . FILTER ( ?z >= 1 ) }
[]
musical ensemble band
Q11649 Q15920 Q382890
SYSTEM
Nirvana, Metallica, Oasis
Q15920 Q82545 Q22151 Q269091 Q1512507 Q617627 Q378948 Q11649 Q484885 Q382890 Q205838 Q27593
(c(Q215380),P737,c(Q2088357))
action atleast
action find_tuple_counts
relation P737
type Q215380
type Q2088357
value 1
[ANSWERS] were influenced by atleast 1 musical ensemble
[{'concept': 'Q215380'}, 'P737', {'concept': 'Q2088357'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?z ) WHERE { ?i property:P737 ?y . ?y rdf:type ontology:Q2088357 . ?i rdf:type ontology:Q215380 } GROUP BY ?i } . FILTER ( ?z >= 1 ) }
Metallica Sex Pistols Muse Tears for Fears You Me at Six Spock's Beard Fields of the Nephilim Nirvana Erasure Oasis Bloc Party AC/DC
Nirvana, Metallica and Oasis were influenced by atleast 1 musical ensemble
Nirvana Metallica Oasis
action atleast
action find_tuple_counts
relation influenced by
type band
type musical ensemble
value 1
[{'concept': 'band'}, 'influenced by', {'concept': 'musical ensemble'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?z ) WHERE { ?i property:influenced_by ?y . ?y rdf:type ontology:musical_ensemble . ?i rdf:type ontology:band } GROUP BY ?i } . FILTER ( ?z >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26694657 Q15920
P495 P17
Q15617994
USER
Which administrative territories are the origin of Metallica or are mayor of Torrijo de la Cañada located in ?
OR((Q15920,P495,c(Q15617994)), (Q26694657,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q15920
relation P495
action find
entity Q26694657
relation P17
type Q15617994
{'OR': [['Q15920', 'P495', {'concept': 'Q15617994'}], ['Q26694657', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q15920 property:P495 ?q } UNION { resource:Q26694657 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
mayor of Torrijo de la Cañada Metallica
action filter_type
action union
action find
entity Metallica
relation country of origin
action find
entity mayor of Torrijo de la Cañada
relation country
type designation for an administrative territorial entity
{'OR': [['Metallica', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['mayor of Torrijo de la Cañada', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Metallica property:country_of_origin ?q } UNION { resource:mayor_of_Torrijo_de_la_Cañada property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q30
SYSTEM
Spain, United States of America
Q29 Q30
OR((Q15920,P495,c(Q15617994)), (Q26694657,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q15920
relation P495
action find
entity Q26694657
relation P17
type Q15617994
[ANSWERS] are the origin of Metallica or are mayor of Torrijo de la Cañada located in
{'OR': [['Q15920', 'P495', {'concept': 'Q15617994'}], ['Q26694657', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q15920 property:P495 ?q } UNION { resource:Q26694657 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Spain United States of America
Spain and United States of America are the origin of Metallica or are mayor of Torrijo de la Cañada located in
Spain United States of America
action filter_type
action union
action find
entity Metallica
relation country of origin
action find
entity mayor of Torrijo de la Cañada
relation country
type designation for an administrative territorial entity
{'OR': [['Metallica', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['mayor of Torrijo de la Cañada', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Metallica property:country_of_origin ?q } UNION { resource:mayor_of_Torrijo_de_la_Cañada property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q385264
P27
Q502895
USER
Are Max Simeoni a native of those administrative territories ?
(Q385264,P27,Q29) (Q385264,P27,Q30)
action is_in
entity prev_answer
action find
entity Q385264
relation P27
['Q385264', 'P27', 'Q29'] ['Q385264', 'P27', 'Q30']
ASK WHERE { resource:Q385264 property:P27 ?z . VALUES ( ?z ) { ( resource:Q29 ) ( resource:Q30 ) } }
Max Simeoni
action is_in
entity prev_answer
action find
entity Max Simeoni
relation country of citizenship
['Max Simeoni', 'country of citizenship', 'Spain'] ['Max Simeoni', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Max_Simeoni property:country_of_citizenship ?z . VALUES ( ?z ) { ( resource:Spain ) ( resource:United_States_of_America ) } }
[]
common name
SYSTEM
NO
(Q385264,P27,Q29) (Q385264,P27,Q30)
action is_in
entity prev_answer
action find
entity Q385264
relation P27
[ANSWER]
['Q385264', 'P27', 'Q29'] ['Q385264', 'P27', 'Q30']
ASK WHERE { resource:Q385264 property:P27 ?z . VALUES ( ?z ) { ( resource:Q29 ) ( resource:Q30 ) } }
No
action is_in
entity prev_answer
action find
entity Max Simeoni
relation country of citizenship
['Max Simeoni', 'country of citizenship', 'Spain'] ['Max Simeoni', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Max_Simeoni property:country_of_citizenship ?z . VALUES ( ?z ) { ( resource:Spain ) ( resource:United_States_of_America ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q30
P47
Q1048835
USER
How many political territories have a shared border with United States of America ?
(Q30,P47,c(Q1048835))
action count
action filter_type
action find
entity Q30
relation P47
type Q1048835
['Q30', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ontology:Q1048835 . resource:Q30 property:P47 ?e }
United States of America
action count
action filter_type
action find
entity United States of America
relation shares border with
type political territorial entity
['United States of America', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ontology:political_territorial_entity . resource:United_States_of_America property:shares_border_with ?e }
[]
political territorial entity
SYSTEM
2
Q778 Q16
(Q30,P47,c(Q1048835))
action count
action filter_type
action find
entity Q30
relation P47
type Q1048835
[ANSWER]
['Q30', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ontology:Q1048835 . resource:Q30 property:P47 ?e }
The Bahamas Canada
2
action count
action filter_type
action find
entity United States of America
relation shares border with
type political territorial entity
['United States of America', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ontology:political_territorial_entity . resource:United_States_of_America property:shares_border_with ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15920
P175
Q2031291
USER
Who performed Metallica ?
(c(Q2031291),P175,Q15920)
action filter_type
action find_reverse
entity Q15920
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q15920']
SELECT DISTINCT ?m WHERE { ?m property:P175 resource:Q15920 . ?m rdf:type ontology:Q2031291 }
Metallica
action filter_type
action find_reverse
entity Metallica
relation performer
type release
[{'concept': 'release'}, 'performer', 'Metallica']
SELECT DISTINCT ?m WHERE { ?m property:performer resource:Metallica . ?m rdf:type ontology:release }
[]
release
Q213516 Q187507 Q672508
SYSTEM
Metallica, Master of Puppets, Enter Sandman
Q1507830 Q1415985 Q12812505 Q1782900 Q2450217 Q2291000 Q276546 Q763942 Q24034571 Q715465 Q1347942 Q190989 Q725175 Q648078 Q2620047 Q1751907 Q736261 Q383630 Q151657 Q2291029 Q1902044 Q2467505 Q9322624 Q672508 Q9545560 Q2477943 Q2463169 Q1139520 Q3304272 Q6494166 Q182826 Q13360910 Q214973 Q213516 Q1385744 Q2567903 Q2337639 Q432262 Q284006 Q154111 Q922052 Q2335978 Q187507 Q1619439 Q925603 Q2081611 Q595125 Q3284678 Q221580 Q1577712 Q3175850 Q1139102
(c(Q2031291),P175,Q15920)
action filter_type
action find_reverse
entity Q15920
relation P175
type Q2031291
[ANSWERS] performed Metallica
[{'concept': 'Q2031291'}, 'P175', 'Q15920']
SELECT DISTINCT ?m WHERE { ?m property:P175 resource:Q15920 . ?m rdf:type ontology:Q2031291 }
I Disappear Harvester of Sorrow Whiskey in the Jar Sad but True Hero of the Day The Unnamed Feeling Load Whiplash Hardwired…to Self-Destruct ReLoad St. Anger Ride the Lightning Nothing Else Matters The $5.98 E.P.: Garage Days Re-Revisited Bleeding Me All Nightmare Long Hit the Lights Master of Puppets Death Magnetic Frantic My Apocalypse The Judas Kiss Ron McGovney's '82 Garage Demo Enter Sandman ...And Justice for All Better than You No Leaf Clover Creeping Death Megaforce Last Caress/Green Hell Kill 'Em All Horsemen of the Apocalypse ...And Justice for All Metallica Eye of the Beholder Cyanide King Nothing Until It Sleeps The Memory Remains St. Anger Mama Said Jump in the Fire Master of Puppets Fuel Broken, Beat & Scarred The Unforgiven II The View Power Metal Lulu Wherever I May Roam No Life 'til Leather The Day That Never Comes
Metallica, Master of Puppets and Enter Sandman performed Metallica
Metallica Master of Puppets Enter Sandman
action filter_type
action find_reverse
entity Metallica
relation performer
type release
[{'concept': 'release'}, 'performer', 'Metallica']
SELECT DISTINCT ?m WHERE { ?m property:performer resource:Metallica . ?m rdf:type ontology:release }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q213516 Q187507 Q672508
P175
Q215380
USER
What were performed by Metallica, Master of Puppets and Enter Sandman ?
(Q213516,P175,c(Q215380)) (Q187507,P175,c(Q215380)) (Q672508,P175,c(Q215380))
action union
action filter_type
action find
entity Q213516
relation P175
type Q215380
action filter_type
action find
entity Q187507
relation P175
type Q215380
action filter_type
action find
entity Q672508
relation P175
type Q215380
['Q213516', 'P175', {'concept': 'Q215380'}] ['Q187507', 'P175', {'concept': 'Q215380'}] ['Q672508', 'P175', {'concept': 'Q215380'}]
SELECT DISTINCT ?f WHERE { { resource:Q213516 property:P175 ?f . ?f rdf:type ontology:Q215380 } UNION { resource:Q187507 property:P175 ?f . ?f rdf:type ontology:Q215380 } }
Metallica Master of Puppets Enter Sandman
action union
action filter_type
action find
entity Metallica
relation performer
type band
action filter_type
action find
entity Master of Puppets
relation performer
type band
action filter_type
action find
entity Enter Sandman
relation performer
type band
['Metallica', 'performer', {'concept': 'band'}] ['Master of Puppets', 'performer', {'concept': 'band'}] ['Enter Sandman', 'performer', {'concept': 'band'}]
SELECT DISTINCT ?f WHERE { { resource:Metallica property:performer ?f . ?f rdf:type ontology:band } UNION { resource:Master_of_Puppets property:performer ?f . ?f rdf:type ontology:band } }
[]
band
Q15920 Q15920 Q15920
SYSTEM
Metallica
Q15920 Q15920 Q15920
(Q213516,P175,c(Q215380)) (Q187507,P175,c(Q215380)) (Q672508,P175,c(Q215380))
action union
action filter_type
action find
entity Q213516
relation P175
type Q215380
action filter_type
action find
entity Q187507
relation P175
type Q215380
action filter_type
action find
entity Q672508
relation P175
type Q215380
[ANSWER], [ANSWER] and [ANSWER] were performed by [ANSWER], Master of Puppets and Enter Sandman
['Q213516', 'P175', {'concept': 'Q215380'}] ['Q187507', 'P175', {'concept': 'Q215380'}] ['Q672508', 'P175', {'concept': 'Q215380'}]
SELECT DISTINCT ?f WHERE { { resource:Q213516 property:P175 ?f . ?f rdf:type ontology:Q215380 } UNION { resource:Q187507 property:P175 ?f . ?f rdf:type ontology:Q215380 } }
Metallica Metallica Metallica
Metallica, Metallica and Metallica were performed by Metallica, Master of Puppets and Enter Sandman
Metallica Metallica Metallica
action union
action filter_type
action find
entity Metallica
relation performer
type band
action filter_type
action find
entity Master of Puppets
relation performer
type band
action filter_type
action find
entity Enter Sandman
relation performer
type band
['Metallica', 'performer', {'concept': 'band'}] ['Master of Puppets', 'performer', {'concept': 'band'}] ['Enter Sandman', 'performer', {'concept': 'band'}]
SELECT DISTINCT ?f WHERE { { resource:Metallica property:performer ?f . ?f rdf:type ontology:band } UNION { resource:Master_of_Puppets property:performer ?f . ?f rdf:type ontology:band } }
[]