Simple Question (Direct)
Simple Question
Q3604400
P410
Q4189293
USER
Which title was the military rank conferred upon Achille Papa ?
(Q3604400,P410,c(Q4189293))
action filter_type
action find
entity Q3604400
relation P410
type Q4189293
['Q3604400', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?i WHERE { resource:Q3604400 property:P410 ?i . ?i rdf:type ontology:Q4189293 }
Achille Papa
action filter_type
action find
entity Achille Papa
relation military rank
type title
['Achille Papa', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?i WHERE { resource:Achille_Papa property:military_rank ?i . ?i rdf:type ontology:title }
[]
title
Q83460
SYSTEM
general officer
Q83460
(Q3604400,P410,c(Q4189293))
action filter_type
action find
entity Q3604400
relation P410
type Q4189293
Rank [ANSWER] was the military rank conferred upon Achille Papa
['Q3604400', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?i WHERE { resource:Q3604400 property:P410 ?i . ?i rdf:type ontology:Q4189293 }
general officer
Rank general officer was the military rank conferred upon Achille Papa
general officer
action filter_type
action find
entity Achille Papa
relation military rank
type title
['Achille Papa', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?i WHERE { resource:Achille_Papa property:military_rank ?i . ?i rdf:type ontology:title }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3604400
P607
Q198
USER
Which war did Achille Papa take part in ?
(Q3604400,P607,c(Q198))
action filter_type
action find
entity Q3604400
relation P607
type Q198
['Q3604400', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { resource:Q3604400 property:P607 ?h . ?h rdf:type ontology:Q198 }
Achille Papa
action filter_type
action find
entity Achille Papa
relation conflict
type war
['Achille Papa', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { resource:Achille_Papa property:conflict ?h . ?h rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q3604400,P607,c(Q198))
action filter_type
action find
entity Q3604400
relation P607
type Q198
Achille Papa took part in [ANSWER]
['Q3604400', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { resource:Q3604400 property:P607 ?h . ?h rdf:type ontology:Q198 }
World War I
Achille Papa took part in World War I
World War I
action filter_type
action find
entity Achille Papa
relation conflict
type war
['Achille Papa', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { resource:Achille_Papa property:conflict ?h . ?h rdf:type ontology:war }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q361 Q7787755
P607
Q502895
USER
Did that war take part in Thomas Boswall Beach ?
(Q7787755,P607,Q361)
action is_in
entity Q361
action find
entity Q7787755
relation P607
['Q7787755', 'P607', 'Q361']
ASK WHERE { resource:Q7787755 property:P607 resource:Q361 }
World War I Thomas Boswall Beach
action is_in
entity World War I
action find
entity Thomas Boswall Beach
relation conflict
['Thomas Boswall Beach', 'conflict', 'World War I']
ASK WHERE { resource:Thomas_Boswall_Beach property:conflict resource:World_War_I }
[]
common name
SYSTEM
YES
(Q7787755,P607,Q361)
action is_in
entity Q361
action find
entity Q7787755
relation P607
[ANSWER]
['Q7787755', 'P607', 'Q361']
ASK WHERE { resource:Q7787755 property:P607 resource:Q361 }
Yes
action is_in
entity World War I
action find
entity Thomas Boswall Beach
relation conflict
['Thomas Boswall Beach', 'conflict', 'World War I']
ASK WHERE { resource:Thomas_Boswall_Beach property:conflict resource:World_War_I }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3604400 Q104577 Q533392
P19
Q15617994
USER
Was Achille Papa born at Desenzano del Garda and Hedwigenkoog ?
(Q3604400,P19,Q104577) (Q3604400,P19,Q533392)
action is_in
entity Q3604400
action intersection
action find_reverse
entity Q104577
relation P19
action find_reverse
entity Q533392
relation P19
['Q3604400', 'P19', 'Q104577'] ['Q3604400', 'P19', 'Q533392']
ASK WHERE { resource:Q3604400 property:P19 resource:Q104577 . resource:Q3604400 property:P19 resource:Q533392 }
Achille Papa Desenzano del Garda Hedwigenkoog
action is_in
entity Achille Papa
action intersection
action find_reverse
entity Desenzano del Garda
relation place of birth
action find_reverse
entity Hedwigenkoog
relation place of birth
['Achille Papa', 'place of birth', 'Desenzano del Garda'] ['Achille Papa', 'place of birth', 'Hedwigenkoog']
ASK WHERE { resource:Achille_Papa property:place_of_birth resource:Desenzano_del_Garda . resource:Achille_Papa property:place_of_birth resource:Hedwigenkoog }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q3604400,P19,Q104577) (Q3604400,P19,Q533392)
action is_in
entity Q3604400
action intersection
action find_reverse
entity Q104577
relation P19
action find_reverse
entity Q533392
relation P19
[ANSWER]
['Q3604400', 'P19', 'Q104577'] ['Q3604400', 'P19', 'Q533392']
ASK WHERE { resource:Q3604400 property:P19 resource:Q104577 . resource:Q3604400 property:P19 resource:Q533392 }
YES and NO respectively
action is_in
entity Achille Papa
action intersection
action find_reverse
entity Desenzano del Garda
relation place of birth
action find_reverse
entity Hedwigenkoog
relation place of birth
['Achille Papa', 'place of birth', 'Desenzano del Garda'] ['Achille Papa', 'place of birth', 'Hedwigenkoog']
ASK WHERE { resource:Achille_Papa property:place_of_birth resource:Desenzano_del_Garda . resource:Achille_Papa property:place_of_birth resource:Hedwigenkoog }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atleast 3851 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3851
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?x >= 3851 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3851
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?x >= 3851 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3851
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?x >= 3851 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3851
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?x >= 3851 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3604400
P20
Q271669
USER
Where did Achille Papa die ?
(Q3604400,P20,c(Q271669))
action filter_type
action find
entity Q3604400
relation P20
type Q271669
['Q3604400', 'P20', {'concept': 'Q271669'}]
SELECT DISTINCT ?y WHERE { resource:Q3604400 property:P20 ?y . ?y rdf:type ontology:Q271669 }
Achille Papa
action filter_type
action find
entity Achille Papa
relation place of death
type landform
['Achille Papa', 'place of death', {'concept': 'landform'}]
SELECT DISTINCT ?y WHERE { resource:Achille_Papa property:place_of_death ?y . ?y rdf:type ontology:landform }
[]
landform
Q1155880
SYSTEM
Banjšice Plateau
Q1155880
(Q3604400,P20,c(Q271669))
action filter_type
action find
entity Q3604400
relation P20
type Q271669
Achille Papa died in [ANSWER]
['Q3604400', 'P20', {'concept': 'Q271669'}]
SELECT DISTINCT ?y WHERE { resource:Q3604400 property:P20 ?y . ?y rdf:type ontology:Q271669 }
Banjšice Plateau
Achille Papa died in Banjšice Plateau
Banjšice Plateau
action filter_type
action find
entity Achille Papa
relation place of death
type landform
['Achille Papa', 'place of death', {'concept': 'landform'}]
SELECT DISTINCT ?y WHERE { resource:Achille_Papa property:place_of_death ?y . ?y rdf:type ontology:landform }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q107050
Q271669
USER
And what about Felix von Eckardt?
(Q107050,P20,c(Q271669))
action filter_type
action find
entity Q107050
relation P20
type Q271669
['Q107050', 'P20', {'concept': 'Q271669'}]
SELECT DISTINCT ?d WHERE { resource:Q107050 property:P20 ?d . ?d rdf:type ontology:Q271669 }
Felix von Eckardt
action filter_type
action find
entity Felix von Eckardt
relation place of death
type landform
['Felix von Eckardt', 'place of death', {'concept': 'landform'}]
SELECT DISTINCT ?d WHERE { resource:Felix_von_Eckardt property:place_of_death ?d . ?d rdf:type ontology:landform }
[]
landform
Q173292
SYSTEM
Capri
Q173292
(Q107050,P20,c(Q271669))
action filter_type
action find
entity Q107050
relation P20
type Q271669
[ANSWER]
['Q107050', 'P20', {'concept': 'Q271669'}]
SELECT DISTINCT ?d WHERE { resource:Q107050 property:P20 ?d . ?d rdf:type ontology:Q271669 }
Capri
Capri
action filter_type
action find
entity Felix von Eckardt
relation place of death
type landform
['Felix von Eckardt', 'place of death', {'concept': 'landform'}]
SELECT DISTINCT ?d WHERE { resource:Felix_von_Eckardt property:place_of_death ?d . ?d rdf:type ontology:landform }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P706
Q107425 Q271669
USER
Which landscapes are the location where atleast 3 landforms are located ?
(c(Q271669),P706,c(Q107425))
action atleast
action find_reverse_tuple_counts
relation P706
type Q107425
type Q271669
value 3
[{'concept': 'Q271669'}, 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?m >= 3 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:P706 ?z . ?f rdf:type ontology:Q271669 . ?z rdf:type ontology:Q107425 } GROUP BY ?z } }
action atleast
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type landform
value 3
[{'concept': 'landform'}, 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?m >= 3 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:located_on_terrain_feature ?z . ?f rdf:type ontology:landform . ?z rdf:type ontology:landscape } GROUP BY ?z } }
[]
landscape landform
Q3237 Q140948 Q207383
SYSTEM
Rügen, South Shetland Islands, South Orkney Islands
Q3237 Q140948 Q207383
(c(Q271669),P706,c(Q107425))
action atleast
action find_reverse_tuple_counts
relation P706
type Q107425
type Q271669
value 3
[ANSWERS] are the location where atleast 3 landforms are located
[{'concept': 'Q271669'}, 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?m >= 3 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:P706 ?z . ?f rdf:type ontology:Q271669 . ?z rdf:type ontology:Q107425 } GROUP BY ?z } }
Rügen South Shetland Islands South Orkney Islands
Rügen, South Shetland Islands and South Orkney Islands are the location where atleast 3 landforms are located
Rügen South Shetland Islands South Orkney Islands
action atleast
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type landform
value 3
[{'concept': 'landform'}, 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?m >= 3 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:located_on_terrain_feature ?z . ?f rdf:type ontology:landform . ?z rdf:type ontology:landscape } GROUP BY ?z } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7608719 Q533392
P27 P17
Q1048835
USER
Which political territories are Hedwigenkoog located in or are the countries of citizenship of Stephen Bird ?
OR((Q533392,P17,c(Q1048835)), (Q7608719,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q533392
relation P17
action find
entity Q7608719
relation P27
type Q1048835
{'OR': [['Q533392', 'P17', {'concept': 'Q1048835'}], ['Q7608719', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q7608719 property:P27 ?x } UNION { resource:Q533392 property:P17 ?x } } . ?x rdf:type ontology:Q1048835 }
Stephen Bird Hedwigenkoog
action filter_type
action union
action find
entity Hedwigenkoog
relation country
action find
entity Stephen Bird
relation country of citizenship
type political territorial entity
{'OR': [['Hedwigenkoog', 'country', {'concept': 'political territorial entity'}], ['Stephen Bird', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Stephen_Bird property:country_of_citizenship ?x } UNION { resource:Hedwigenkoog property:country ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q533392,P17,c(Q1048835)), (Q7608719,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q533392
relation P17
action find
entity Q7608719
relation P27
type Q1048835
Hedwigenkoog are located in [ANSWERS] or are the countries of citizenship of Stephen Bird
{'OR': [['Q533392', 'P17', {'concept': 'Q1048835'}], ['Q7608719', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q7608719 property:P27 ?x } UNION { resource:Q533392 property:P17 ?x } } . ?x rdf:type ontology:Q1048835 }
Australia Germany
Hedwigenkoog are located in Australia and Germany or are the countries of citizenship of Stephen Bird
Australia Germany
action filter_type
action union
action find
entity Hedwigenkoog
relation country
action find
entity Stephen Bird
relation country of citizenship
type political territorial entity
{'OR': [['Hedwigenkoog', 'country', {'concept': 'political territorial entity'}], ['Stephen Bird', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Stephen_Bird property:country_of_citizenship ?x } UNION { resource:Hedwigenkoog property:country ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]