Simple Question (Direct)
Simple Question
Q11802064
P21
Q290
USER
Which sex does Pablo Dacal belong to ?
(Q11802064,P21,c(Q290))
action filter_type
action find
entity Q11802064
relation P21
type Q290
['Q11802064', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q11802064 property:P21 ?p }
Pablo Dacal
action filter_type
action find
entity Pablo Dacal
relation gender
type sex
['Pablo Dacal', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Pablo_Dacal property:gender ?p }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11802064,P21,c(Q290))
action filter_type
action find
entity Q11802064
relation P21
type Q290
Pablo Dacal belongs to [ANSWER]
['Q11802064', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q11802064 property:P21 ?p }
male
Pablo Dacal belongs to male
male
action filter_type
action find
entity Pablo Dacal
relation gender
type sex
['Pablo Dacal', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Pablo_Dacal property:gender ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P69
Q502895
USER
Who studied at that sex ?
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?q WHERE { ?q property:P69 resource:Q6581097 . ?q rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?q WHERE { ?q property:educated_at resource:male . ?q rdf:type ontology:common_name }
[]
common name
Q4662307
SYSTEM
Aaron Parchem
Q4662307
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[ANSWER] studied at that sex
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?q WHERE { ?q property:P69 resource:Q6581097 . ?q rdf:type ontology:Q502895 }
Aaron Parchem
Aaron Parchem studied at that sex
Aaron Parchem
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?q WHERE { ?q property:educated_at resource:male . ?q rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q4662307 Q9632 Q9642
P1344
Q15900616
USER
Did that person took part in 1956 Winter Olympics and 1968 Winter Olympics ?
(Q4662307,P1344,Q9632) (Q4662307,P1344,Q9642)
action is_in
entity Q4662307
action intersection
action find_reverse
entity Q9632
relation P1344
action find_reverse
entity Q9642
relation P1344
['Q4662307', 'P1344', 'Q9632'] ['Q4662307', 'P1344', 'Q9642']
ASK WHERE { resource:Q4662307 property:P1344 resource:Q9632 . resource:Q4662307 property:P1344 resource:Q9642 }
Aaron Parchem 1956 Winter Olympics 1968 Winter Olympics
action is_in
entity Aaron Parchem
action intersection
action find_reverse
entity 1956 Winter Olympics
relation participant of
action find_reverse
entity 1968 Winter Olympics
relation participant of
['Aaron Parchem', 'participant of', '1956 Winter Olympics'] ['Aaron Parchem', 'participant of', '1968 Winter Olympics']
ASK WHERE { resource:Aaron_Parchem property:participant_of resource:1956_Winter_Olympics . resource:Aaron_Parchem property:participant_of resource:1968_Winter_Olympics }
[]
event sequence
SYSTEM
NO
(Q4662307,P1344,Q9632) (Q4662307,P1344,Q9642)
action is_in
entity Q4662307
action intersection
action find_reverse
entity Q9632
relation P1344
action find_reverse
entity Q9642
relation P1344
[ANSWER]
['Q4662307', 'P1344', 'Q9632'] ['Q4662307', 'P1344', 'Q9642']
ASK WHERE { resource:Q4662307 property:P1344 resource:Q9632 . resource:Q4662307 property:P1344 resource:Q9642 }
No
action is_in
entity Aaron Parchem
action intersection
action find_reverse
entity 1956 Winter Olympics
relation participant of
action find_reverse
entity 1968 Winter Olympics
relation participant of
['Aaron Parchem', 'participant of', '1956 Winter Olympics'] ['Aaron Parchem', 'participant of', '1968 Winter Olympics']
ASK WHERE { resource:Aaron_Parchem property:participant_of resource:1956_Winter_Olympics . resource:Aaron_Parchem property:participant_of resource:1968_Winter_Olympics }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q644440
P1303
Q34379 Q502895
USER
Which musical instruments can more number of people perform with than Lap steel guitar ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q644440
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?r > ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Q644440 property:P1303 ?p . ?p rdf:type ontology:Q34379 } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { ?k rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 . ?e property:P1303 ?k } GROUP BY ?k } }
Lap steel guitar
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Lap steel guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?r > ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Lap_steel_guitar property:instrument ?p . ?p rdf:type ontology:musical_instrument } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { ?k rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name . ?e property:instrument ?k } GROUP BY ?k } }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q644440
relation P1303
type Q34379
[ANSWERS] can more number of people perform with than Lap steel guitar
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?r > ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Q644440 property:P1303 ?p . ?p rdf:type ontology:Q34379 } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { ?k rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 . ?e property:P1303 ?k } GROUP BY ?k } }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
Piano, harpsichord and ondes Martenot can more number of people perform with than Lap steel guitar
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Lap steel guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?r > ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Lap_steel_guitar property:instrument ?p . ?p rdf:type ontology:musical_instrument } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { ?k rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name . ?e property:instrument ?k } GROUP BY ?k } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q80284
P1303
Q34379 Q502895
USER
And what about viola?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q80284
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?g rdf:type ontology:Q34379 . resource:Q80284 property:P1303 ?g } } . FILTER ( ?v > ?j ) }
viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity viola
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?g rdf:type ontology:musical_instrument . resource:viola property:instrument ?g } } . FILTER ( ?v > ?j ) }
[]
musical instrument common name
Q5994 Q46185 Q80019
SYSTEM
piano, bass guitar, double bass
Q46185 Q80019 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q80284
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?g rdf:type ontology:Q34379 . resource:Q80284 property:P1303 ?g } } . FILTER ( ?v > ?j ) }
bass guitar double bass piano trumpet cello violin organ drum kit
piano bass guitar double bass
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity viola
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?g rdf:type ontology:musical_instrument . resource:viola property:instrument ?g } } . FILTER ( ?v > ?j ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10347693 Q11802064
P27 P20
Q15617994
USER
Which administrative territories did the expiration of Pablo Dacal occur or are Pedro Paulo Scheunemann a civilian of ?
OR((Q11802064,P20,c(Q15617994)), (Q10347693,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11802064
relation P20
action find
entity Q10347693
relation P27
type Q15617994
{'OR': [['Q11802064', 'P20', {'concept': 'Q15617994'}], ['Q10347693', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { { resource:Q11802064 property:P20 ?z } UNION { resource:Q10347693 property:P27 ?z } } }
Pedro Paulo Scheunemann Pablo Dacal
action filter_type
action union
action find
entity Pablo Dacal
relation place of death
action find
entity Pedro Paulo Scheunemann
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Pablo Dacal', 'place of death', {'concept': 'designation for an administrative territorial entity'}], ['Pedro Paulo Scheunemann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pablo_Dacal property:place_of_death ?z } UNION { resource:Pedro_Paulo_Scheunemann property:country_of_citizenship ?z } } }
[]
designation for an administrative territorial entity
Q77 Q155
SYSTEM
Uruguay, Brazil
Q77 Q155
OR((Q11802064,P20,c(Q15617994)), (Q10347693,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11802064
relation P20
action find
entity Q10347693
relation P27
type Q15617994
Are a civilian of the expiration of Pablo Dacal or Pedro Paulo Scheunemann occurred in [ANSWERS]
{'OR': [['Q11802064', 'P20', {'concept': 'Q15617994'}], ['Q10347693', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { { resource:Q11802064 property:P20 ?z } UNION { resource:Q10347693 property:P27 ?z } } }
Uruguay Brazil
Are a civilian of the expiration of Pablo Dacal or Pedro Paulo Scheunemann occurred in Uruguay and Brazil
Uruguay Brazil
action filter_type
action union
action find
entity Pablo Dacal
relation place of death
action find
entity Pedro Paulo Scheunemann
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Pablo Dacal', 'place of death', {'concept': 'designation for an administrative territorial entity'}], ['Pedro Paulo Scheunemann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pablo_Dacal property:place_of_death ?z } UNION { resource:Pedro_Paulo_Scheunemann property:country_of_citizenship ?z } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1552718
P276
Q350604
USER
Are Granada War located at those administrative territories ?
(Q1552718,P276,Q77) (Q1552718,P276,Q155)
action is_in
entity prev_answer
action find
entity Q1552718
relation P276
['Q1552718', 'P276', 'Q77'] ['Q1552718', 'P276', 'Q155']
ASK WHERE { VALUES ( ?y ) { ( resource:Q77 ) ( resource:Q155 ) } . resource:Q1552718 property:P276 ?y }
Granada War
action is_in
entity prev_answer
action find
entity Granada War
relation location
['Granada War', 'location', 'Uruguay'] ['Granada War', 'location', 'Brazil']
ASK WHERE { VALUES ( ?y ) { ( resource:Uruguay ) ( resource:Brazil ) } . resource:Granada_War property:location ?y }
[]
armed conflict
SYSTEM
NO
(Q1552718,P276,Q77) (Q1552718,P276,Q155)
action is_in
entity prev_answer
action find
entity Q1552718
relation P276
[ANSWER]
['Q1552718', 'P276', 'Q77'] ['Q1552718', 'P276', 'Q155']
ASK WHERE { VALUES ( ?y ) { ( resource:Q77 ) ( resource:Q155 ) } . resource:Q1552718 property:P276 ?y }
No
action is_in
entity prev_answer
action find
entity Granada War
relation location
['Granada War', 'location', 'Uruguay'] ['Granada War', 'location', 'Brazil']
ASK WHERE { VALUES ( ?y ) { ( resource:Uruguay ) ( resource:Brazil ) } . resource:Granada_War property:location ?y }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?h ) { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?f ) WHERE { ?k property:P530 ?v . ?k rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?k } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?j ) WHERE { ?p property:P530 ?i . ?p rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?j = ?h ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?h ) { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?f ) WHERE { ?k property:diplomatic_relation ?v . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?j ) WHERE { ?p property:diplomatic_relation ?i . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?j = ?h ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have diplomatic associations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?h ) { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?f ) WHERE { ?k property:P530 ?v . ?k rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?k } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?j ) WHERE { ?p property:P530 ?i . ?p rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?j = ?h ) }
Georgia
Georgia have diplomatic associations with max number of administrative territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?h ) { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?f ) WHERE { ?k property:diplomatic_relation ?v . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?j ) WHERE { ?p property:diplomatic_relation ?i . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?j = ?h ) }
[]