Simple Question (Direct)
Simple Question
Q1035382
P119
Q43229
USER
Which organization is the resting place of Árpád Hensch ?
(Q1035382,P119,c(Q43229))
action filter_type
action find
entity Q1035382
relation P119
type Q43229
['Q1035382', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q43229 . resource:Q1035382 property:P119 ?s }
Árpád Hensch
action filter_type
action find
entity Árpád Hensch
relation place of burial
type organization
['Árpád Hensch', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:organization . resource:Árpád_Hensch property:place_of_burial ?s }
[]
organization
Q996499
SYSTEM
Farkasréti Cemetery
Q996499
(Q1035382,P119,c(Q43229))
action filter_type
action find
entity Q1035382
relation P119
type Q43229
The [ANSWER] is the resting place of Árpád Hensch
['Q1035382', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q43229 . resource:Q1035382 property:P119 ?s }
Farkasréti Cemetery
The Farkasréti Cemetery is the resting place of Árpád Hensch
Farkasréti Cemetery
action filter_type
action find
entity Árpád Hensch
relation place of burial
type organization
['Árpád Hensch', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:organization . resource:Árpád_Hensch property:place_of_burial ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q996499
P17
Q15617994
USER
Which administrative territory is that organization situated in ?
(Q996499,P17,c(Q15617994))
action filter_type
action find
entity Q996499
relation P17
type Q15617994
['Q996499', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q996499 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Farkasréti Cemetery
action filter_type
action find
entity Farkasréti Cemetery
relation country
type designation for an administrative territorial entity
['Farkasréti Cemetery', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Farkasréti_Cemetery property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q996499,P17,c(Q15617994))
action filter_type
action find
entity Q996499
relation P17
type Q15617994
That organization is situated in [ANSWER]
['Q996499', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q996499 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Hungary
That organization is situated in Hungary
Hungary
action filter_type
action find
entity Farkasréti Cemetery
relation country
type designation for an administrative territorial entity
['Farkasréti Cemetery', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Farkasréti_Cemetery property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q28
P840
Q838948
USER
Which work of art has a setting location of that administrative territory ?
(c(Q838948),P840,Q28)
action filter_type
action find_reverse
entity Q28
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q28']
SELECT DISTINCT ?u WHERE { ?u property:P840 resource:Q28 . ?u rdf:type ontology:Q838948 }
Hungary
action filter_type
action find_reverse
entity Hungary
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Hungary']
SELECT DISTINCT ?u WHERE { ?u property:narrative_location resource:Hungary . ?u rdf:type ontology:work_of_art }
[]
work of art
Q17363277
SYSTEM
Kvadrat
Q17363277
(c(Q838948),P840,Q28)
action filter_type
action find_reverse
entity Q28
relation P840
type Q838948
[ANSWER] has a setting location of that administrative territory
[{'concept': 'Q838948'}, 'P840', 'Q28']
SELECT DISTINCT ?u WHERE { ?u property:P840 resource:Q28 . ?u rdf:type ontology:Q838948 }
Kvadrat
Kvadrat has a setting location of that administrative territory
Kvadrat
action filter_type
action find_reverse
entity Hungary
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Hungary']
SELECT DISTINCT ?u WHERE { ?u property:narrative_location resource:Hungary . ?u rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P840
Q15617994 Q56061
USER
How many administrative territories or administrative territories are that work of art set in ?
(Q17363277,P840,c(Q15617994)) (Q17363277,P840,c(Q56061)) (Q17363277,P840,c(Q15617994)) (Q17363277,P840,c(Q56061))
action count
action union
action filter_type
action find
entity Q17363277
relation P840
type Q15617994
action filter_type
action find
entity Q17363277
relation P840
type Q56061
['Q17363277', 'P840', {'concept': 'Q15617994'}] ['Q17363277', 'P840', {'concept': 'Q56061'}] ['Q17363277', 'P840', {'concept': 'Q15617994'}] ['Q17363277', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } }
action count
action union
action filter_type
action find
entity Kvadrat
relation narrative location
type designation for an administrative territorial entity
action filter_type
action find
entity Kvadrat
relation narrative location
type administrative territorial entity
['Kvadrat', 'narrative location', {'concept': 'designation for an administrative territorial entity'}] ['Kvadrat', 'narrative location', {'concept': 'administrative territorial entity'}] ['Kvadrat', 'narrative location', {'concept': 'designation for an administrative territorial entity'}] ['Kvadrat', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
designation for an administrative territorial entity administrative territorial entity
SYSTEM
7
Q142 Q159 Q218 Q649 Q90 Q28 Q39
(Q17363277,P840,c(Q15617994)) (Q17363277,P840,c(Q56061)) (Q17363277,P840,c(Q15617994)) (Q17363277,P840,c(Q56061))
action count
action union
action filter_type
action find
entity Q17363277
relation P840
type Q15617994
action filter_type
action find
entity Q17363277
relation P840
type Q56061
[ANSWER]
['Q17363277', 'P840', {'concept': 'Q15617994'}] ['Q17363277', 'P840', {'concept': 'Q56061'}] ['Q17363277', 'P840', {'concept': 'Q15617994'}] ['Q17363277', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } }
France Russia Romania Moscow Paris Hungary Switzerland
7
action count
action union
action filter_type
action find
entity Kvadrat
relation narrative location
type designation for an administrative territorial entity
action filter_type
action find
entity Kvadrat
relation narrative location
type administrative territorial entity
['Kvadrat', 'narrative location', {'concept': 'designation for an administrative territorial entity'}] ['Kvadrat', 'narrative location', {'concept': 'administrative territorial entity'}] ['Kvadrat', 'narrative location', {'concept': 'designation for an administrative territorial entity'}] ['Kvadrat', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1001
Q15617994 Q1292279 Q11204
USER
Which administrative territories come under the jurisdiction of min number of political borders or legislatures ?
(c(Q1292279)|c(Q11204),P1001,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q1292279
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
[[{'concept': 'Q1292279'}, {'concept': 'Q11204'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:P1001 ?p . ?p rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1292279 } UNION { ?a property:P1001 ?p . ?p rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q11204 } } GROUP BY ?p } . FILTER ( ?i = ?r ) . { SELECT DISTINCT ( MIN ( ?t ) AS ?r ) { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:P1001 ?x . ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q11204 } UNION { ?v property:P1001 ?x . ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1292279 } } GROUP BY ?x } } }
action argmin
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type political border
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
[[{'concept': 'political border'}, {'concept': 'legislature'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:applies_to_jurisdiction ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_border } UNION { ?a property:applies_to_jurisdiction ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:legislature } } GROUP BY ?p } . FILTER ( ?i = ?r ) . { SELECT DISTINCT ( MIN ( ?t ) AS ?r ) { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:applies_to_jurisdiction ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:legislature } UNION { ?v property:applies_to_jurisdiction ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_border } } GROUP BY ?x } } }
[]
designation for an administrative territorial entity political border legislature
Q55 Q2007 Q1904
SYSTEM
Netherlands, Northwest Territories, Ontario
Q701 Q705 Q707 Q706679 Q2765 Q163012 Q22273061 Q55 Q2871 Q24764 Q2742 Q443815 Q50198 Q187035 Q22274206 Q1462 Q6465 Q1979 Q4628 Q7688 Q3097 Q158893 Q2942 Q11340 Q11343 Q1974 Q2899 Q2758 Q4712 Q155019 Q163966 Q769680 Q3068 Q11323 Q1948 Q1093 Q119284 Q3403547 Q2667658 Q2009 Q2007 Q1101 Q2003 Q1904 Q3462133 Q223 Q1989 Q2838 Q694 Q752 Q22274534 Q11337 Q11331 Q154547 Q1216 Q2805 Q2107 Q1951 Q1438 Q34020 Q2380910 Q11301 Q2904 Q158095 Q775 Q776 Q770 Q773 Q772 Q158083 Q72449 Q22273285 Q129003 Q33788 Q1267638 Q329609 Q2938 Q2023 Q1231
(c(Q1292279)|c(Q11204),P1001,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q1292279
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
[ANSWERS] come under the jurisdiction of min number of political borders or legislatures
[[{'concept': 'Q1292279'}, {'concept': 'Q11204'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:P1001 ?p . ?p rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1292279 } UNION { ?a property:P1001 ?p . ?p rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q11204 } } GROUP BY ?p } . FILTER ( ?i = ?r ) . { SELECT DISTINCT ( MIN ( ?t ) AS ?r ) { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:P1001 ?x . ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q11204 } UNION { ?v property:P1001 ?x . ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1292279 } } GROUP BY ?x } } }
North Holland Zeeland Flevoland Duchy of Bar Gelsenkirchen Pankow Duchy of Nemours Netherlands Hagen municipality of the Philippines Münster Altomünster province of Thailand Principality of Albania Duchy of Mercoeur Sardinia department of France Prince Edward Island Faroe Islands raion Remscheid Friedrichshain-Kreuzberg Solingen Sprockhövel Wetter (Ruhr) British Columbia Mülheim an der Ruhr Mönchengladbach Duchy of Burgundy Duchy of Lorraine Mitte Bornholm Loire-Atlantique Breckerfeld Manitoba Limburg Marzahn-Hellersdorf principality of Phalsbourg and Lixheim Shushary, Saint Petersburg Yukon Northwest Territories North Brabant Newfoundland and Labrador Ontario Saxe-Coburg and Gotha Greenland Saskatchewan Oberhausen South Holland Groningen Duchy of Elbeuf Herdecke Gevelsberg duchy Piedmont Krefeld Wuppertal Alberta Campania Niue Duchy of Zaslawye Ennepetal Herne Charlottenburg-Wilmersdorf Gelderland Utrecht Friesland Overijssel Drenthe Spandau Roccarainola Duchy of Guise French Southern and Antarctic Lands New Caledonia Beloostrov Lichtenberg Leverkusen Nunavut Kosovo Region
Netherlands, Northwest Territories and Ontario come under the jurisdiction of min number of political borders or legislatures
Netherlands Northwest Territories Ontario
action argmin
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type political border
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
[[{'concept': 'political border'}, {'concept': 'legislature'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:applies_to_jurisdiction ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_border } UNION { ?a property:applies_to_jurisdiction ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:legislature } } GROUP BY ?p } . FILTER ( ?i = ?r ) . { SELECT DISTINCT ( MIN ( ?t ) AS ?r ) { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:applies_to_jurisdiction ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:legislature } UNION { ?v property:applies_to_jurisdiction ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_border } } GROUP BY ?x } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P159
Q1190554 Q874405
USER
How many events and social groups have the principal seat at that administrative territory ?
(c(Q1190554),P159,Q55) (c(Q874405),P159,Q55) (c(Q1190554),P159,Q55) (c(Q874405),P159,Q55) (c(Q1190554),P159,Q2007) (c(Q874405),P159,Q2007) (c(Q1190554),P159,Q1904) (c(Q874405),P159,Q1904)
[{'concept': 'Q1190554'}, 'P159', 'Q55'] [{'concept': 'Q874405'}, 'P159', 'Q55'] [{'concept': 'Q1190554'}, 'P159', 'Q55'] [{'concept': 'Q874405'}, 'P159', 'Q55'] [{'concept': 'Q1190554'}, 'P159', 'Q2007'] [{'concept': 'Q874405'}, 'P159', 'Q2007'] [{'concept': 'Q1190554'}, 'P159', 'Q1904'] [{'concept': 'Q874405'}, 'P159', 'Q1904']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q22442862 } UNION { ?y property:P159 resource:Q22442862 } UNION { ?z property:P159 resource:Q22442862 } UNION { ?y property:P159 resource:Q22442862 } UNION { ?z property:P159 resource:Q3518829 } UNION { ?y property:P159 resource:Q3518829 } UNION { ?z property:P159 resource:Q1639059 } UNION { ?y property:P159 resource:Q1639059 } } . ?z rdf:type ontology:Q5416694 . ?y rdf:type ontology:Q874405 }
[{'concept': 'event'}, 'headquarters location', 'Netherlands'] [{'concept': 'social group'}, 'headquarters location', 'Netherlands'] [{'concept': 'event'}, 'headquarters location', 'Netherlands'] [{'concept': 'social group'}, 'headquarters location', 'Netherlands'] [{'concept': 'event'}, 'headquarters location', 'Northwest Territories'] [{'concept': 'social group'}, 'headquarters location', 'Northwest Territories'] [{'concept': 'event'}, 'headquarters location', 'Ontario'] [{'concept': 'social group'}, 'headquarters location', 'Ontario']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:Netherlands } UNION { ?y property:headquarters_location resource:Netherlands } UNION { ?z property:headquarters_location resource:Netherlands } UNION { ?y property:headquarters_location resource:Netherlands } UNION { ?z property:headquarters_location resource:Northwest_Territories } UNION { ?y property:headquarters_location resource:Northwest_Territories } UNION { ?z property:headquarters_location resource:Ontario } UNION { ?y property:headquarters_location resource:Ontario } } . ?z rdf:type ontology:event . ?y rdf:type ontology:social_group }
[]
event social group
Quantitative|Count|Mult. entity type|Clarification
Q2007
SYSTEM
Did you mean Northwest Territories ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q22442862 } UNION { ?y property:P159 resource:Q22442862 } UNION { ?z property:P159 resource:Q22442862 } UNION { ?y property:P159 resource:Q22442862 } UNION { ?z property:P159 resource:Q3518829 } UNION { ?y property:P159 resource:Q3518829 } UNION { ?z property:P159 resource:Q1639059 } UNION { ?y property:P159 resource:Q1639059 } } . ?z rdf:type ontology:Q5416694 . ?y rdf:type ontology:Q874405 }
Did you mean Northwest Territories ?
Northwest Territories
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:Netherlands } UNION { ?y property:headquarters_location resource:Netherlands } UNION { ?z property:headquarters_location resource:Netherlands } UNION { ?y property:headquarters_location resource:Netherlands } UNION { ?z property:headquarters_location resource:Northwest_Territories } UNION { ?y property:headquarters_location resource:Northwest_Territories } UNION { ?z property:headquarters_location resource:Ontario } UNION { ?y property:headquarters_location resource:Ontario } } . ?z rdf:type ontology:event . ?y rdf:type ontology:social_group }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Netherlands. Could you tell me the answer for that?
(c(Q1190554),P159,Q55) (c(Q874405),P159,Q55) (c(Q1190554),P159,Q55) (c(Q874405),P159,Q55) (c(Q1190554),P159,Q2007) (c(Q874405),P159,Q2007) (c(Q1190554),P159,Q1904) (c(Q874405),P159,Q1904)
Q55
[{'concept': 'Q1190554'}, 'P159', 'Q55'] [{'concept': 'Q874405'}, 'P159', 'Q55'] [{'concept': 'Q1190554'}, 'P159', 'Q55'] [{'concept': 'Q874405'}, 'P159', 'Q55'] [{'concept': 'Q1190554'}, 'P159', 'Q2007'] [{'concept': 'Q874405'}, 'P159', 'Q2007'] [{'concept': 'Q1190554'}, 'P159', 'Q1904'] [{'concept': 'Q874405'}, 'P159', 'Q1904']
[{'concept': 'event'}, 'headquarters location', 'Netherlands'] [{'concept': 'social group'}, 'headquarters location', 'Netherlands'] [{'concept': 'event'}, 'headquarters location', 'Netherlands'] [{'concept': 'social group'}, 'headquarters location', 'Netherlands'] [{'concept': 'event'}, 'headquarters location', 'Northwest Territories'] [{'concept': 'social group'}, 'headquarters location', 'Northwest Territories'] [{'concept': 'event'}, 'headquarters location', 'Ontario'] [{'concept': 'social group'}, 'headquarters location', 'Ontario']
[]
SYSTEM
1 events and 5 social groups
Q2273437 Q2344768 Q430272 Q6066902 Q6999142 Q16983278
(c(Q1190554),P159,Q55) (c(Q874405),P159,Q55) (c(Q1190554),P159,Q55) (c(Q874405),P159,Q55) (c(Q1190554),P159,Q2007) (c(Q874405),P159,Q2007) (c(Q1190554),P159,Q1904) (c(Q874405),P159,Q1904)
[ANSWER]
[{'concept': 'Q1190554'}, 'P159', 'Q55'] [{'concept': 'Q874405'}, 'P159', 'Q55'] [{'concept': 'Q1190554'}, 'P159', 'Q55'] [{'concept': 'Q874405'}, 'P159', 'Q55'] [{'concept': 'Q1190554'}, 'P159', 'Q2007'] [{'concept': 'Q874405'}, 'P159', 'Q2007'] [{'concept': 'Q1190554'}, 'P159', 'Q1904'] [{'concept': 'Q874405'}, 'P159', 'Q1904']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q22442862 } UNION { ?y property:P159 resource:Q22442862 } UNION { ?z property:P159 resource:Q22442862 } UNION { ?y property:P159 resource:Q22442862 } UNION { ?z property:P159 resource:Q3518829 } UNION { ?y property:P159 resource:Q3518829 } UNION { ?z property:P159 resource:Q1639059 } UNION { ?y property:P159 resource:Q1639059 } } . ?z rdf:type ontology:Q5416694 . ?y rdf:type ontology:Q874405 }
Ninsee OpenTaal International Pharmaceutical Students' Federation Iran Tribunal Netherlands Bioinformatics Centre HarambeeHolland
1 events and 5 social groups
[{'concept': 'event'}, 'headquarters location', 'Netherlands'] [{'concept': 'social group'}, 'headquarters location', 'Netherlands'] [{'concept': 'event'}, 'headquarters location', 'Netherlands'] [{'concept': 'social group'}, 'headquarters location', 'Netherlands'] [{'concept': 'event'}, 'headquarters location', 'Northwest Territories'] [{'concept': 'social group'}, 'headquarters location', 'Northwest Territories'] [{'concept': 'event'}, 'headquarters location', 'Ontario'] [{'concept': 'social group'}, 'headquarters location', 'Ontario']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:Netherlands } UNION { ?y property:headquarters_location resource:Netherlands } UNION { ?z property:headquarters_location resource:Netherlands } UNION { ?y property:headquarters_location resource:Netherlands } UNION { ?z property:headquarters_location resource:Northwest_Territories } UNION { ?y property:headquarters_location resource:Northwest_Territories } UNION { ?z property:headquarters_location resource:Ontario } UNION { ?y property:headquarters_location resource:Ontario } } . ?z rdf:type ontology:event . ?y rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28
P276
Q1190554
USER
What is situated at Hungary ?
(c(Q1190554),P276,Q28)
action filter_type
action find_reverse
entity Q28
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q28']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1190554 . ?c property:P276 resource:Q28 }
Hungary
action filter_type
action find_reverse
entity Hungary
relation location
type event
[{'concept': 'event'}, 'location', 'Hungary']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:event . ?c property:location resource:Hungary }
[]
event
Q164348
SYSTEM
Hungarian Revolution of 1956
Q164348
(c(Q1190554),P276,Q28)
action filter_type
action find_reverse
entity Q28
relation P276
type Q1190554
[ANSWER] is situated at Hungary
[{'concept': 'Q1190554'}, 'P276', 'Q28']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1190554 . ?c property:P276 resource:Q28 }
Hungarian Revolution of 1956
Hungarian Revolution of 1956 is situated at Hungary
Hungarian Revolution of 1956
action filter_type
action find_reverse
entity Hungary
relation location
type event
[{'concept': 'event'}, 'location', 'Hungary']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:event . ?c property:location resource:Hungary }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q164348
P607
Q502895
USER
Which people were that event a part of ?
(c(Q502895),P607,Q164348)
action filter_type
action find_reverse
entity Q164348
relation P607
type Q502895
[{'concept': 'Q502895'}, 'P607', 'Q164348']
SELECT DISTINCT ?f WHERE { ?f property:P607 resource:Q164348 . ?f rdf:type ontology:Q502895 }
Hungarian Revolution of 1956
action filter_type
action find_reverse
entity Hungarian Revolution of 1956
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Hungarian Revolution of 1956']
SELECT DISTINCT ?f WHERE { ?f property:conflict resource:Hungarian_Revolution_of_1956 . ?f rdf:type ontology:common_name }
[]
common name
Q4495974 Q1176477 Q4077138
SYSTEM
Nikolai Harlamov, Imre Mező, Alexandr Mikhailovich Balyasnikov
Q26769548 Q4495974 Q4444954 Q1176477 Q4077138
(c(Q502895),P607,Q164348)
action filter_type
action find_reverse
entity Q164348
relation P607
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P607', 'Q164348']
SELECT DISTINCT ?f WHERE { ?f property:P607 resource:Q164348 . ?f rdf:type ontology:Q502895 }
Erika Kornélia Szeles Nikolai Harlamov Valentin Vassilyevich Subbotin Imre Mező Alexandr Mikhailovich Balyasnikov
Which people were that event a part of
Nikolai Harlamov Imre Mező Alexandr Mikhailovich Balyasnikov
action filter_type
action find_reverse
entity Hungarian Revolution of 1956
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Hungarian Revolution of 1956']
SELECT DISTINCT ?f WHERE { ?f property:conflict resource:Hungarian_Revolution_of_1956 . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4495974 Q1176477 Q4077138
P21
Q290
USER
Which sexes do those people possess ?
(Q4495974,P21,c(Q290)) (Q1176477,P21,c(Q290)) (Q4077138,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q4495974', 'P21', {'concept': 'Q290'}] ['Q1176477', 'P21', {'concept': 'Q290'}] ['Q4077138', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q290 . ?z property:P21 ?k . VALUES ( ?z ) { ( resource:Q26769548 ) ( resource:Q4495974 ) ( resource:Q4444954 ) } }
Nikolai Harlamov Imre Mező Alexandr Mikhailovich Balyasnikov
action filter_type
action find
entity prev_answer
relation gender
type sex
['Nikolai Harlamov', 'gender', {'concept': 'sex'}] ['Imre Mező', 'gender', {'concept': 'sex'}] ['Alexandr Mikhailovich Balyasnikov', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sex . ?z property:gender ?k . VALUES ( ?z ) { ( resource:Erika_Kornélia_Szeles ) ( resource:Nikolai_Harlamov ) ( resource:Valentin_Vassilyevich_Subbotin ) } }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097
(Q4495974,P21,c(Q290)) (Q1176477,P21,c(Q290)) (Q4077138,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people possess a [ANSWER], [ANSWER] and [ANSWER]
['Q4495974', 'P21', {'concept': 'Q290'}] ['Q1176477', 'P21', {'concept': 'Q290'}] ['Q4077138', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q290 . ?z property:P21 ?k . VALUES ( ?z ) { ( resource:Q26769548 ) ( resource:Q4495974 ) ( resource:Q4444954 ) } }
male male male
Those people possess a male, male and male
male male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Nikolai Harlamov', 'gender', {'concept': 'sex'}] ['Imre Mező', 'gender', {'concept': 'sex'}] ['Alexandr Mikhailovich Balyasnikov', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sex . ?z property:gender ?k . VALUES ( ?z ) { ( resource:Erika_Kornélia_Szeles ) ( resource:Nikolai_Harlamov ) ( resource:Valentin_Vassilyevich_Subbotin ) } }
[]