Simple Question (Direct)
Simple Question
Q3225614
P27
Q15617994
USER
Which administrative territory is Ștefan Mihăilescu-Brăila an inhabitant of ?
(Q3225614,P27,c(Q15617994))
action filter_type
action find
entity Q3225614
relation P27
type Q15617994
['Q3225614', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q3225614 property:P27 ?k }
Ștefan Mihăilescu-Brăila
action filter_type
action find
entity Ștefan Mihăilescu-Brăila
relation country of citizenship
type designation for an administrative territorial entity
['Ștefan Mihăilescu-Brăila', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ștefan_Mihăilescu-Brăila property:country_of_citizenship ?k }
[]
designation for an administrative territorial entity
Q218
SYSTEM
Romania
Q218
(Q3225614,P27,c(Q15617994))
action filter_type
action find
entity Q3225614
relation P27
type Q15617994
[ANSWER] is Ștefan Mihăilescu-Brăila an inhabitant of
['Q3225614', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q3225614 property:P27 ?k }
Romania
Romania is Ștefan Mihăilescu-Brăila an inhabitant of
Romania
action filter_type
action find
entity Ștefan Mihăilescu-Brăila
relation country of citizenship
type designation for an administrative territorial entity
['Ștefan Mihăilescu-Brăila', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ștefan_Mihăilescu-Brăila property:country_of_citizenship ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3225614
P106
Q28640
USER
Which profession has that person as his/her 's career ?
(Q218,P106,c(Q28640))
action filter_type
action find
entity Q3225614
relation P106
type Q28640
['Q218', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?o WHERE { resource:Q3225614 property:P106 ?o . ?o rdf:type ontology:Q28640 }
Ștefan Mihăilescu-Brăila
action filter_type
action find
entity Ștefan Mihăilescu-Brăila
relation occupation
type profession
['Romania', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?o WHERE { resource:Ștefan_Mihăilescu-Brăila property:occupation ?o . ?o rdf:type ontology:profession }
[]
profession
Q10800557
SYSTEM
film actor
Q10800557
(Q218,P106,c(Q28640))
action filter_type
action find
entity Q3225614
relation P106
type Q28640
The [ANSWER] has that person as his/her 's career
['Q218', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?o WHERE { resource:Q3225614 property:P106 ?o . ?o rdf:type ontology:Q28640 }
film actor
The film actor has that person as his/her 's career
film actor
action filter_type
action find
entity Ștefan Mihăilescu-Brăila
relation occupation
type profession
['Romania', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?o WHERE { resource:Ștefan_Mihăilescu-Brăila property:occupation ?o . ?o rdf:type ontology:profession }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q25866375
P355
Q28640 Q1269299
USER
How many business organizations are more number of professions the subordinate of than Share plc ?
(c(Q1269299),P355,c(Q28640))
action count
action greater
action find_tuple_counts
relation P355
type Q1269299
type Q28640
action count
action filter_type
action find
entity Q25866375
relation P355
type Q1269299
[{'concept': 'Q1269299'}, 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?x ) WHERE { ?s property:P355 ?y . ?s rdf:type ontology:Q1269299 . ?y rdf:type ontology:Q28640 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q25866375 property:P355 ?d . ?d rdf:type ontology:Q1269299 } } . FILTER ( ?x > ?l ) }
Share plc
action count
action greater
action find_tuple_counts
relation subsidiary
type type of business entity
type profession
action count
action filter_type
action find
entity Share plc
relation subsidiary
type type of business entity
[{'concept': 'type of business entity'}, 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?x ) WHERE { ?s property:subsidiary ?y . ?s rdf:type ontology:type_of_business_entity . ?y rdf:type ontology:profession } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Share_plc property:subsidiary ?d . ?d rdf:type ontology:type_of_business_entity } } . FILTER ( ?x > ?l ) }
[]
profession type of business entity
SYSTEM
5
Q2283 Q753684 Q7433758 Q1576915 Q207784
(c(Q1269299),P355,c(Q28640))
action count
action greater
action find_tuple_counts
relation P355
type Q1269299
type Q28640
action count
action filter_type
action find
entity Q25866375
relation P355
type Q1269299
[ANSWER]
[{'concept': 'Q1269299'}, 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?x ) WHERE { ?s property:P355 ?y . ?s rdf:type ontology:Q1269299 . ?y rdf:type ontology:Q28640 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q25866375 property:P355 ?d . ?d rdf:type ontology:Q1269299 } } . FILTER ( ?x > ?l ) }
Microsoft Atari, SA Scientific Games Corporation Koei Tecmo Holdings Square Enix
5
action count
action greater
action find_tuple_counts
relation subsidiary
type type of business entity
type profession
action count
action filter_type
action find
entity Share plc
relation subsidiary
type type of business entity
[{'concept': 'type of business entity'}, 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?x ) WHERE { ?s property:subsidiary ?y . ?s rdf:type ontology:type_of_business_entity . ?y rdf:type ontology:profession } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Share_plc property:subsidiary ?d . ?d rdf:type ontology:type_of_business_entity } } . FILTER ( ?x > ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q43
P530
Q15617994 Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with more number of administrative territories or political territories than Turkey ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q43
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } UNION { ?i property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } . ?s property:P530 resource:Q43 } } . FILTER ( ?x > ?u ) }
Turkey
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Turkey
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } . ?s property:diplomatic_relation resource:Turkey } } . FILTER ( ?x > ?u ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q142 Q145 Q148 Q403 Q159 Q155 Q30 Q38 Q17
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q43
relation P530
type Q15617994
type Q1048835
[ANSWERS] have diplomatic relationships with more number of administrative territories or political territories than Turkey
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } UNION { ?i property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } . ?s property:P530 resource:Q43 } } . FILTER ( ?x > ?u ) }
Israel Yemen France United Kingdom People's Republic of China Serbia Russia Brazil United States of America Italy Japan
Italy, Brazil and United States of America have diplomatic relationships with more number of administrative territories or political territories than Turkey
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Turkey
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } . ?s property:diplomatic_relation resource:Turkey } } . FILTER ( ?x > ?u ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q218
P276
Q350604 Q8065
USER
How many armed conflicts and natural disasters are located at Romania ?
(c(Q350604),P276,Q218) (c(Q8065),P276,Q218)
action count
action union
action filter_type
action find_reverse
entity Q218
relation P276
type Q350604
action filter_type
action find_reverse
entity Q218
relation P276
type Q8065
[{'concept': 'Q350604'}, 'P276', 'Q218'] [{'concept': 'Q8065'}, 'P276', 'Q218']
SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { { ?k property:P276 resource:Q218 . ?k rdf:type ontology:Q350604 } UNION { ?k property:P276 resource:Q218 . ?k rdf:type ontology:Q8065 } }
Romania
action count
action union
action filter_type
action find_reverse
entity Romania
relation location
type armed conflict
action filter_type
action find_reverse
entity Romania
relation location
type natural disaster
[{'concept': 'armed conflict'}, 'location', 'Romania'] [{'concept': 'natural disaster'}, 'location', 'Romania']
SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { { ?k property:location resource:Romania . ?k rdf:type ontology:armed_conflict } UNION { ?k property:location resource:Romania . ?k rdf:type ontology:natural_disaster } }
[]
armed conflict natural disaster
SYSTEM
1 armed conflicts and 1 natural disasters
Q24287229 Q553157
(c(Q350604),P276,Q218) (c(Q8065),P276,Q218)
action count
action union
action filter_type
action find_reverse
entity Q218
relation P276
type Q350604
action filter_type
action find_reverse
entity Q218
relation P276
type Q8065
[ANSWER]
[{'concept': 'Q350604'}, 'P276', 'Q218'] [{'concept': 'Q8065'}, 'P276', 'Q218']
SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { { ?k property:P276 resource:Q218 . ?k rdf:type ontology:Q350604 } UNION { ?k property:P276 resource:Q218 . ?k rdf:type ontology:Q8065 } }
2016 European floods Romania during World War I
1 armed conflicts and 1 natural disasters
action count
action union
action filter_type
action find_reverse
entity Romania
relation location
type armed conflict
action filter_type
action find_reverse
entity Romania
relation location
type natural disaster
[{'concept': 'armed conflict'}, 'location', 'Romania'] [{'concept': 'natural disaster'}, 'location', 'Romania']
SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { { ?k property:location resource:Romania . ?k rdf:type ontology:armed_conflict } UNION { ?k property:location resource:Romania . ?k rdf:type ontology:natural_disaster } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q218
P172
Q502895
USER
Who has Romania as his/her race ?
(c(Q502895),P172,Q218)
action filter_type
action find_reverse
entity Q218
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q218']
SELECT DISTINCT ?t WHERE { ?t property:P172 resource:Q218 . ?t rdf:type ontology:Q502895 }
Romania
action filter_type
action find_reverse
entity Romania
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Romania']
SELECT DISTINCT ?t WHERE { ?t property:ethnic_group resource:Romania . ?t rdf:type ontology:common_name }
[]
common name
Q1336281
SYSTEM
Emil Hurezeanu
Q1336281
(c(Q502895),P172,Q218)
action filter_type
action find_reverse
entity Q218
relation P172
type Q502895
[ANSWER] has Romania as his/her race
[{'concept': 'Q502895'}, 'P172', 'Q218']
SELECT DISTINCT ?t WHERE { ?t property:P172 resource:Q218 . ?t rdf:type ontology:Q502895 }
Emil Hurezeanu
Emil Hurezeanu has Romania as his/her race
Emil Hurezeanu
action filter_type
action find_reverse
entity Romania
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Romania']
SELECT DISTINCT ?t WHERE { ?t property:ethnic_group resource:Romania . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1336281
P69
Q3918
USER
Which university was that person educated at ?
(Q1336281,P69,c(Q3918))
action filter_type
action find
entity Q1336281
relation P69
type Q3918
['Q1336281', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?h WHERE { resource:Q1336281 property:P69 ?h . ?h rdf:type ontology:Q3918 }
Emil Hurezeanu
action filter_type
action find
entity Emil Hurezeanu
relation educated at
type university
['Emil Hurezeanu', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?h WHERE { resource:Emil_Hurezeanu property:educated_at ?h . ?h rdf:type ontology:university }
[]
university
Q213439
SYSTEM
University of Virginia
Q213439
(Q1336281,P69,c(Q3918))
action filter_type
action find
entity Q1336281
relation P69
type Q3918
That person was educated by [ANSWER]
['Q1336281', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?h WHERE { resource:Q1336281 property:P69 ?h . ?h rdf:type ontology:Q3918 }
University of Virginia
That person was educated by University of Virginia
University of Virginia
action filter_type
action find
entity Emil Hurezeanu
relation educated at
type university
['Emil Hurezeanu', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?h WHERE { resource:Emil_Hurezeanu property:educated_at ?h . ?h rdf:type ontology:university }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q2531909 Q218
P530 P17
Q1048835
USER
Which political territories have diplomatic relationships with Romania and are not Volksfürsorge present in ?
AND((Q218,P530,c(Q1048835)), NOT((Q2531909,P17,c(Q1048835))))
action filter_type
action difference
action find
entity Q218
relation P530
action find
entity Q2531909
relation P17
type Q1048835
{'AND': [['Q218', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q2531909', 'P17', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?a WHERE { MINUS { resource:Q2531909 property:P17 ?a } . resource:Q218 property:P530 ?a . ?a rdf:type ontology:Q1048835 }
Volksfürsorge Romania
action filter_type
action difference
action find
entity Romania
relation diplomatic relation
action find
entity Volksfürsorge
relation country
type political territorial entity
{'AND': [['Romania', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Volksfürsorge', 'country', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?a WHERE { MINUS { resource:Volksfürsorge property:country ?a } . resource:Romania property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q16
SYSTEM
Australia, Canada
Q408 Q16
AND((Q218,P530,c(Q1048835)), NOT((Q2531909,P17,c(Q1048835))))
action filter_type
action difference
action find
entity Q218
relation P530
action find
entity Q2531909
relation P17
type Q1048835
[ANSWERS] have diplomatic relationships with Romania and are not Volksfürsorge present in
{'AND': [['Q218', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q2531909', 'P17', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?a WHERE { MINUS { resource:Q2531909 property:P17 ?a } . resource:Q218 property:P530 ?a . ?a rdf:type ontology:Q1048835 }
Australia Canada
Australia and Canada have diplomatic relationships with Romania and are not Volksfürsorge present in
Australia Canada
action filter_type
action difference
action find
entity Romania
relation diplomatic relation
action find
entity Volksfürsorge
relation country
type political territorial entity
{'AND': [['Romania', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Volksfürsorge', 'country', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?a WHERE { MINUS { resource:Volksfürsorge property:country ?a } . resource:Romania property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2482527
P495
Q15416
USER
Are those political territories a country of origin of The Saddle Club ?
(Q2482527,P495,Q408) (Q2482527,P495,Q16)
action is_in
entity prev_answer
action find
entity Q2482527
relation P495
['Q2482527', 'P495', 'Q408'] ['Q2482527', 'P495', 'Q16']
ASK WHERE { VALUES ( ?d ) { ( resource:Q408 ) ( resource:Q16 ) } . resource:Q2482527 property:P495 ?d }
The Saddle Club
action is_in
entity prev_answer
action find
entity The Saddle Club
relation country of origin
['The Saddle Club', 'country of origin', 'Australia'] ['The Saddle Club', 'country of origin', 'Canada']
ASK WHERE { VALUES ( ?d ) { ( resource:Australia ) ( resource:Canada ) } . resource:The_Saddle_Club property:country_of_origin ?d }
[]
television program
SYSTEM
YES
(Q2482527,P495,Q408) (Q2482527,P495,Q16)
action is_in
entity prev_answer
action find
entity Q2482527
relation P495
[ANSWER]
['Q2482527', 'P495', 'Q408'] ['Q2482527', 'P495', 'Q16']
ASK WHERE { VALUES ( ?d ) { ( resource:Q408 ) ( resource:Q16 ) } . resource:Q2482527 property:P495 ?d }
Yes
action is_in
entity prev_answer
action find
entity The Saddle Club
relation country of origin
['The Saddle Club', 'country of origin', 'Australia'] ['The Saddle Club', 'country of origin', 'Canada']
ASK WHERE { VALUES ( ?d ) { ( resource:Australia ) ( resource:Canada ) } . resource:The_Saddle_Club property:country_of_origin ?d }
[]