Simple Question (Direct)
Simple Question
Q1477152
P57
Q502895
USER
Who directed Blackjack ?
(Q1477152,P57,c(Q502895))
action filter_type
action find
entity Q1477152
relation P57
type Q502895
['Q1477152', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1477152 property:P57 ?m . ?m rdf:type ontology:Q502895 }
Blackjack
action filter_type
action find
entity Blackjack
relation director
type common name
['Blackjack', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Blackjack property:director ?m . ?m rdf:type ontology:common_name }
[]
common name
Q55432
SYSTEM
John Woo
Q55432
(Q1477152,P57,c(Q502895))
action filter_type
action find
entity Q1477152
relation P57
type Q502895
The [ANSWER] directed Blackjack
['Q1477152', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1477152 property:P57 ?m . ?m rdf:type ontology:Q502895 }
John Woo
The John Woo directed Blackjack
John Woo
action filter_type
action find
entity Blackjack
relation director
type common name
['Blackjack', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Blackjack property:director ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1477152
P161
Q502895
USER
Which people are in Blackjack ?
(Q1477152,P161,c(Q502895))
action filter_type
action find
entity Q1477152
relation P161
type Q502895
['Q1477152', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q1477152 property:P161 ?z . ?z rdf:type ontology:Q502895 }
Blackjack
action filter_type
action find
entity Blackjack
relation cast member
type common name
['Blackjack', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Blackjack property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
common name
Q181678 Q288688 Q1452569
SYSTEM
Dolph Lundgren, Kate Vernon, Fred Williamson
Q3075466 Q181678 Q288688 Q1452569
(Q1477152,P161,c(Q502895))
action filter_type
action find
entity Q1477152
relation P161
type Q502895
[ANSWERS] are in Blackjack
['Q1477152', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q1477152 property:P161 ?z . ?z rdf:type ontology:Q502895 }
Kam Heskin Dolph Lundgren Kate Vernon Fred Williamson
Dolph Lundgren, Kate Vernon and Fred Williamson are in Blackjack
Dolph Lundgren Kate Vernon Fred Williamson
action filter_type
action find
entity Blackjack
relation cast member
type common name
['Blackjack', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Blackjack property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q181678
P161
Q838948 Q15416
USER
How many works of art and television programs do Dolph Lundgren star in ?
(c(Q838948),P161,Q181678) (c(Q15416),P161,Q181678)
action count
action union
action filter_type
action find_reverse
entity Q181678
relation P161
type Q838948
action filter_type
action find_reverse
entity Q181678
relation P161
type Q15416
[{'concept': 'Q838948'}, 'P161', 'Q181678'] [{'concept': 'Q15416'}, 'P161', 'Q181678']
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { ?o property:P161 resource:Q181678 . ?o rdf:type ontology:Q838948 } UNION { ?o rdf:type ontology:Q15416 . ?o property:P161 resource:Q181678 } }
Dolph Lundgren
action count
action union
action filter_type
action find_reverse
entity Dolph Lundgren
relation cast member
type work of art
action filter_type
action find_reverse
entity Dolph Lundgren
relation cast member
type television program
[{'concept': 'work of art'}, 'cast member', 'Dolph Lundgren'] [{'concept': 'television program'}, 'cast member', 'Dolph Lundgren']
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { ?o property:cast_member resource:Dolph_Lundgren . ?o rdf:type ontology:work_of_art } UNION { ?o rdf:type ontology:television_program . ?o property:cast_member resource:Dolph_Lundgren } }
[]
work of art television program
SYSTEM
47 works of art and 1 television programs
Q2657424 Q3178708 Q1166137 Q166716 Q14370516 Q2627384 Q206374 Q1323227 Q1227439 Q1541762 Q1049906 Q122623 Q571139 Q2414513 Q1469617 Q20949892 Q640547 Q17128162 Q332368 Q2625451 Q1208694 Q930936 Q688701 Q22814359 Q1477152 Q1201149 Q59498 Q1123831 Q58972 Q1167685 Q1323500 Q1151145 Q1809498 Q1129069 Q3939825 Q2079501 Q576456 Q2352222 Q3988608 Q392761 Q1153794 Q808101 Q1962710 Q210812 Q1411893 Q1466178 Q387638 Q2409780
(c(Q838948),P161,Q181678) (c(Q15416),P161,Q181678)
action count
action union
action filter_type
action find_reverse
entity Q181678
relation P161
type Q838948
action filter_type
action find_reverse
entity Q181678
relation P161
type Q15416
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q181678'] [{'concept': 'Q15416'}, 'P161', 'Q181678']
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { ?o property:P161 resource:Q181678 . ?o rdf:type ontology:Q838948 } UNION { ?o rdf:type ontology:Q15416 . ?o property:P161 resource:Q181678 } }
In the Name of the King 2: Two Worlds Jill Rips I Come in Peace Universal Soldier: Day of Reckoning The Expendables 3 Icarus The Expendables Retrograde Direct Action The Peacekeeper Showdown in Little Tokyo Men of War The Mechanik Sweepers The Minion Kindergarten Cop 2 Universal Soldier Skin Trade A View to a Kill The Shooter Diamond Dogs Command Performance Silent Trigger Shark Lake Blackjack Detention Stash House Hidden Agenda Masters of the Universe The Inquiry The Last Warrior Red Scorpion Missionary Man Johnny Mnemonic Rocky - Going the distance Small Apartments Cover Up Storm Catcher The Package Agent Red The Punisher Joshua Tree Pentathlon The Expendables 2 Bridge of Dragons Universal Soldier: Regeneration Rocky IV Direct Contact
47 works of art and 1 television programs
action count
action union
action filter_type
action find_reverse
entity Dolph Lundgren
relation cast member
type work of art
action filter_type
action find_reverse
entity Dolph Lundgren
relation cast member
type television program
[{'concept': 'work of art'}, 'cast member', 'Dolph Lundgren'] [{'concept': 'television program'}, 'cast member', 'Dolph Lundgren']
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { ?o property:cast_member resource:Dolph_Lundgren . ?o rdf:type ontology:work_of_art } UNION { ?o rdf:type ontology:television_program . ?o property:cast_member resource:Dolph_Lundgren } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q11404
P1303
Q34379 Q502895
USER
Which musical instruments do approximately the same number of people know to play as drum ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q11404
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Q11404 property:P1303 ?c . ?c rdf:type ontology:Q34379 } } . FILTER ( ?t = ?v ) }
drum
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity drum
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:drum property:instrument ?c . ?c rdf:type ontology:musical_instrument } } . FILTER ( ?t = ?v ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 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 approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q11404
relation P1303
type Q34379
[ANSWERS] approximately the same number of people know to play as drum
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Q11404 property:P1303 ?c . ?c rdf:type ontology:Q34379 } } . FILTER ( ?t = ?v ) }
viola 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 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
Davul, harpsichord and Wurlitzer electric piano approximately the same number of people know to play as drum
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity drum
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:drum property:instrument ?c . ?c rdf:type ontology:musical_instrument } } . FILTER ( ?t = ?v ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P180
Q34379 Q1792379
USER
Which art genres express exactly 1 musical instrument ?
(c(Q1792379),P180,c(Q34379))
action equal
action find_tuple_counts
relation P180
type Q1792379
type Q34379
value 1
[{'concept': 'Q1792379'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?d ) WHERE { ?k property:P180 ?q . ?q rdf:type ontology:Q34379 . ?k rdf:type ontology:Q1792379 } GROUP BY ?k } . FILTER ( ?d = 1 ) }
action equal
action find_tuple_counts
relation depicts
type art genre
type musical instrument
value 1
[{'concept': 'art genre'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?d ) WHERE { ?k property:depicts ?q . ?q rdf:type ontology:musical_instrument . ?k rdf:type ontology:art_genre } GROUP BY ?k } . FILTER ( ?d = 1 ) }
[]
musical instrument art genre
Q18661427
SYSTEM
Memorial of the people of Pori
Q18661427
(c(Q1792379),P180,c(Q34379))
action equal
action find_tuple_counts
relation P180
type Q1792379
type Q34379
value 1
[ANSWER] express exactly 1 musical instrument
[{'concept': 'Q1792379'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?d ) WHERE { ?k property:P180 ?q . ?q rdf:type ontology:Q34379 . ?k rdf:type ontology:Q1792379 } GROUP BY ?k } . FILTER ( ?d = 1 ) }
Memorial of the people of Pori
Memorial of the people of Pori express exactly 1 musical instrument
Memorial of the people of Pori
action equal
action find_tuple_counts
relation depicts
type art genre
type musical instrument
value 1
[{'concept': 'art genre'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?d ) WHERE { ?k property:depicts ?q . ?q rdf:type ontology:musical_instrument . ?k rdf:type ontology:art_genre } GROUP BY ?k } . FILTER ( ?d = 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18661427
P170
Q502895
USER
Who created that art genre ?
(Q18661427,P170,c(Q502895))
action filter_type
action find
entity Q18661427
relation P170
type Q502895
['Q18661427', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q18661427 property:P170 ?y . ?y rdf:type ontology:Q502895 }
Memorial of the people of Pori
action filter_type
action find
entity Memorial of the people of Pori
relation creator
type common name
['Memorial of the people of Pori', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Memorial_of_the_people_of_Pori property:creator ?y . ?y rdf:type ontology:common_name }
[]
common name
Q5396823
SYSTEM
Kauko Räike
Q5396823
(Q18661427,P170,c(Q502895))
action filter_type
action find
entity Q18661427
relation P170
type Q502895
[ANSWER] created that art genre
['Q18661427', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q18661427 property:P170 ?y . ?y rdf:type ontology:Q502895 }
Kauko Räike
Kauko Räike created that art genre
Kauko Räike
action filter_type
action find
entity Memorial of the people of Pori
relation creator
type common name
['Memorial of the people of Pori', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Memorial_of_the_people_of_Pori property:creator ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5396823
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q5396823,P27,c(Q15617994))
action filter_type
action find
entity Q5396823
relation P27
type Q15617994
['Q5396823', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q5396823 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Kauko Räike
action filter_type
action find
entity Kauko Räike
relation country of citizenship
type designation for an administrative territorial entity
['Kauko Räike', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Kauko_Räike property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33
SYSTEM
Finland
Q33
(Q5396823,P27,c(Q15617994))
action filter_type
action find
entity Q5396823
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q5396823', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q5396823 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Finland
Finland is that person a civilian of
Finland
action filter_type
action find
entity Kauko Räike
relation country of citizenship
type designation for an administrative territorial entity
['Kauko Räike', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Kauko_Räike property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q33 Q789769
P463
Q484652
USER
Was that administrative territory a member of Council of the Baltic Sea States ?
(Q33,P463,Q789769)
action is_in
entity Q789769
action find
entity Q33
relation P463
['Q33', 'P463', 'Q789769']
ASK WHERE { resource:Q33 property:P463 resource:Q789769 }
Finland Council of the Baltic Sea States
action is_in
entity Council of the Baltic Sea States
action find
entity Finland
relation member of
['Finland', 'member of', 'Council of the Baltic Sea States']
ASK WHERE { resource:Finland property:member_of resource:Council_of_the_Baltic_Sea_States }
[]
international organization
SYSTEM
YES
(Q33,P463,Q789769)
action is_in
entity Q789769
action find
entity Q33
relation P463
[ANSWER]
['Q33', 'P463', 'Q789769']
ASK WHERE { resource:Q33 property:P463 resource:Q789769 }
Yes
action is_in
entity Council of the Baltic Sea States
action find
entity Finland
relation member of
['Finland', 'member of', 'Council of the Baltic Sea States']
ASK WHERE { resource:Finland property:member_of resource:Council_of_the_Baltic_Sea_States }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q181678 Q961237 Q1754
P19
Q56061
USER
Was Dolph Lundgren born at California and Stockholm ?
(Q181678,P19,Q961237) (Q181678,P19,Q1754)
action is_in
entity Q181678
action intersection
action find_reverse
entity Q961237
relation P19
action find_reverse
entity Q1754
relation P19
['Q181678', 'P19', 'Q961237'] ['Q181678', 'P19', 'Q1754']
ASK WHERE { resource:Q181678 property:P19 resource:Q1754 . resource:Q181678 property:P19 resource:Q961237 }
Dolph Lundgren California Stockholm
action is_in
entity Dolph Lundgren
action intersection
action find_reverse
entity California
relation place of birth
action find_reverse
entity Stockholm
relation place of birth
['Dolph Lundgren', 'place of birth', 'California'] ['Dolph Lundgren', 'place of birth', 'Stockholm']
ASK WHERE { resource:Dolph_Lundgren property:place_of_birth resource:Stockholm . resource:Dolph_Lundgren property:place_of_birth resource:California }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q181678,P19,Q961237) (Q181678,P19,Q1754)
action is_in
entity Q181678
action intersection
action find_reverse
entity Q961237
relation P19
action find_reverse
entity Q1754
relation P19
[ANSWER]
['Q181678', 'P19', 'Q961237'] ['Q181678', 'P19', 'Q1754']
ASK WHERE { resource:Q181678 property:P19 resource:Q1754 . resource:Q181678 property:P19 resource:Q961237 }
NO and YES respectively
action is_in
entity Dolph Lundgren
action intersection
action find_reverse
entity California
relation place of birth
action find_reverse
entity Stockholm
relation place of birth
['Dolph Lundgren', 'place of birth', 'California'] ['Dolph Lundgren', 'place of birth', 'Stockholm']
ASK WHERE { resource:Dolph_Lundgren property:place_of_birth resource:Stockholm . resource:Dolph_Lundgren property:place_of_birth resource:California }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q55432 Q393686
P166
Q4220917
USER
Was Academy Award for Best Visual Effects received by John Woo ?
(Q55432,P166,Q393686)
action is_in
entity Q393686
action find
entity Q55432
relation P166
['Q55432', 'P166', 'Q393686']
ASK WHERE { resource:Q55432 property:P166 resource:Q393686 }
John Woo Academy Award for Best Visual Effects
action is_in
entity Academy Award for Best Visual Effects
action find
entity John Woo
relation award received
['John Woo', 'award received', 'Academy Award for Best Visual Effects']
ASK WHERE { resource:John_Woo property:award_received resource:Academy_Award_for_Best_Visual_Effects }
[]
film award
SYSTEM
NO
(Q55432,P166,Q393686)
action is_in
entity Q393686
action find
entity Q55432
relation P166
[ANSWER]
['Q55432', 'P166', 'Q393686']
ASK WHERE { resource:Q55432 property:P166 resource:Q393686 }
No
action is_in
entity Academy Award for Best Visual Effects
action find
entity John Woo
relation award received
['John Woo', 'award received', 'Academy Award for Best Visual Effects']
ASK WHERE { resource:John_Woo property:award_received resource:Academy_Award_for_Best_Visual_Effects }
[]