Simple Question (Direct)
Simple Question
Q1645981
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of Rossell, Baix Maestrat ?
(Q1645981,P1313,c(Q12737077))
action filter_type
action find
entity Q1645981
relation P1313
type Q12737077
['Q1645981', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q1645981 property:P1313 ?v . ?v rdf:type ontology:Q12737077 }
Rossell, Baix Maestrat
action filter_type
action find
entity Rossell, Baix Maestrat
relation office held by head of government
type occupation
['Rossell, Baix Maestrat', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Rossell,_Baix_Maestrat property:office_held_by_head_of_government ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q26694259
SYSTEM
mayor of Rosell
Q26694259
(Q1645981,P1313,c(Q12737077))
action filter_type
action find
entity Q1645981
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of Rossell, Baix Maestrat
['Q1645981', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q1645981 property:P1313 ?v . ?v rdf:type ontology:Q12737077 }
mayor of Rosell
The mayor of Rosell serves as the political office that is fulfilled by the head of the government of Rossell, Baix Maestrat
mayor of Rosell
action filter_type
action find
entity Rossell, Baix Maestrat
relation office held by head of government
type occupation
['Rossell, Baix Maestrat', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Rossell,_Baix_Maestrat property:office_held_by_head_of_government ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1645981
P47
Q1048835
USER
Which political territories are bordered by that one ?
(c(Q1048835),P47,Q26694259)
action filter_type
action find
entity Q1645981
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q26694259']
SELECT DISTINCT ?d WHERE { resource:Q1645981 property:P47 ?d . ?d rdf:type ontology:Q1048835 }
Rossell, Baix Maestrat
action filter_type
action find
entity Rossell, Baix Maestrat
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'mayor of Rosell']
SELECT DISTINCT ?d WHERE { resource:Rossell,_Baix_Maestrat property:shares_border_with ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q704847 Q1646978 Q1767567
SYSTEM
La Sénia, Canet lo Roig, Vallibona
Q613582 Q744088 Q704847 Q1646978 Q1767567
(c(Q1048835),P47,Q26694259)
action filter_type
action find
entity Q1645981
relation P47
type Q1048835
[ANSWERS] are bordered by that one
[{'concept': 'Q1048835'}, 'P47', 'Q26694259']
SELECT DISTINCT ?d WHERE { resource:Q1645981 property:P47 ?d . ?d rdf:type ontology:Q1048835 }
Sant Rafel del Riu La Pobla de Benifassà La Sénia Canet lo Roig Vallibona
La Sénia, Canet lo Roig and Vallibona are bordered by that one
La Sénia Canet lo Roig Vallibona
action filter_type
action find
entity Rossell, Baix Maestrat
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'mayor of Rosell']
SELECT DISTINCT ?d WHERE { resource:Rossell,_Baix_Maestrat property:shares_border_with ?d . ?d rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q29 Q1646978
P47 P17
Q1048835
USER
Which political territories have an adjacent border with Canet lo Roig and are present in Spain ?
AND((c(Q1048835),P47,Q1646978), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q1646978
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q1646978'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?s WHERE { ?s property:P47 resource:Q1646978 . ?s property:P17 resource:Q29 . ?s rdf:type ontology:Q1048835 }
Spain Canet lo Roig
action filter_type
action intersection
action find_reverse
entity Canet lo Roig
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Canet lo Roig'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?s WHERE { ?s property:shares_border_with resource:Canet_lo_Roig . ?s property:country resource:Spain . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1645728 Q613582 Q1768937 Q1983359 Q1645981 Q1767567
SYSTEM
Traiguera, Sant Rafel del Riu, La Jana, Xert, Rossell, Baix Maestrat, Vallibona
Q1645728 Q613582 Q1768937 Q1983359 Q1645981 Q1767567
AND((c(Q1048835),P47,Q1646978), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q1646978
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
[ANSWERS] have an adjacent border with Canet lo Roig and are present in Spain
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q1646978'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?s WHERE { ?s property:P47 resource:Q1646978 . ?s property:P17 resource:Q29 . ?s rdf:type ontology:Q1048835 }
Traiguera Sant Rafel del Riu La Jana Xert Rossell, Baix Maestrat Vallibona
Traiguera, Sant Rafel del Riu, La Jana, Xert, Rossell, Baix Maestrat and Vallibona have an adjacent border with Canet lo Roig and are present in Spain
Traiguera Sant Rafel del Riu La Jana Xert Rossell, Baix Maestrat Vallibona
action filter_type
action intersection
action find_reverse
entity Canet lo Roig
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Canet lo Roig'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?s WHERE { ?s property:shares_border_with resource:Canet_lo_Roig . ?s property:country resource:Spain . ?s rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2021026
P47
Q1048835
USER
Do those ones share a border with Farias Brito ?
(Q2021026,P47,Q1645728) (Q2021026,P47,Q613582) (Q2021026,P47,Q1768937) (Q2021026,P47,Q1983359) (Q2021026,P47,Q1645981) (Q2021026,P47,Q1767567)
action is_in
entity prev_answer
action find
entity Q2021026
relation P47
['Q2021026', 'P47', 'Q1645728'] ['Q2021026', 'P47', 'Q613582'] ['Q2021026', 'P47', 'Q1768937'] ['Q2021026', 'P47', 'Q1983359'] ['Q2021026', 'P47', 'Q1645981'] ['Q2021026', 'P47', 'Q1767567']
ASK WHERE { resource:Q2021026 property:P47 ?q . VALUES ( ?q ) { ( resource:Q1645728 ) ( resource:Q613582 ) ( resource:Q1768937 ) } }
Farias Brito
action is_in
entity prev_answer
action find
entity Farias Brito
relation shares border with
['Farias Brito', 'shares border with', 'Traiguera'] ['Farias Brito', 'shares border with', 'Sant Rafel del Riu'] ['Farias Brito', 'shares border with', 'La Jana'] ['Farias Brito', 'shares border with', 'Xert'] ['Farias Brito', 'shares border with', 'Rossell, Baix Maestrat'] ['Farias Brito', 'shares border with', 'Vallibona']
ASK WHERE { resource:Farias_Brito property:shares_border_with ?q . VALUES ( ?q ) { ( resource:Traiguera ) ( resource:Sant_Rafel_del_Riu ) ( resource:La_Jana ) } }
[]
political territorial entity
SYSTEM
NO
(Q2021026,P47,Q1645728) (Q2021026,P47,Q613582) (Q2021026,P47,Q1768937) (Q2021026,P47,Q1983359) (Q2021026,P47,Q1645981) (Q2021026,P47,Q1767567)
action is_in
entity prev_answer
action find
entity Q2021026
relation P47
[ANSWER]
['Q2021026', 'P47', 'Q1645728'] ['Q2021026', 'P47', 'Q613582'] ['Q2021026', 'P47', 'Q1768937'] ['Q2021026', 'P47', 'Q1983359'] ['Q2021026', 'P47', 'Q1645981'] ['Q2021026', 'P47', 'Q1767567']
ASK WHERE { resource:Q2021026 property:P47 ?q . VALUES ( ?q ) { ( resource:Q1645728 ) ( resource:Q613582 ) ( resource:Q1768937 ) } }
No
action is_in
entity prev_answer
action find
entity Farias Brito
relation shares border with
['Farias Brito', 'shares border with', 'Traiguera'] ['Farias Brito', 'shares border with', 'Sant Rafel del Riu'] ['Farias Brito', 'shares border with', 'La Jana'] ['Farias Brito', 'shares border with', 'Xert'] ['Farias Brito', 'shares border with', 'Rossell, Baix Maestrat'] ['Farias Brito', 'shares border with', 'Vallibona']
ASK WHERE { resource:Farias_Brito property:shares_border_with ?q . VALUES ( ?q ) { ( resource:Traiguera ) ( resource:Sant_Rafel_del_Riu ) ( resource:La_Jana ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q613582 Q29
P17
Q15617994
USER
Is Sant Rafel del Riu present in Spain ?
(Q613582,P17,Q29)
action is_in
entity Q29
action find
entity Q613582
relation P17
['Q613582', 'P17', 'Q29']
ASK WHERE { resource:Q613582 property:P17 resource:Q29 }
Sant Rafel del Riu Spain
action is_in
entity Spain
action find
entity Sant Rafel del Riu
relation country
['Sant Rafel del Riu', 'country', 'Spain']
ASK WHERE { resource:Sant_Rafel_del_Riu property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q613582,P17,Q29)
action is_in
entity Q29
action find
entity Q613582
relation P17
[ANSWER]
['Q613582', 'P17', 'Q29']
ASK WHERE { resource:Q613582 property:P17 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity Sant Rafel del Riu
relation country
['Sant Rafel del Riu', 'country', 'Spain']
ASK WHERE { resource:Sant_Rafel_del_Riu property:country resource:Spain }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1645728 Q4221575
P47
Q1048835
USER
Is Troiandove bordered by Traiguera ?
(Q1645728,P47,Q4221575)
action is_in
entity Q4221575
action find
entity Q1645728
relation P47
['Q1645728', 'P47', 'Q4221575']
ASK WHERE { resource:Q1645728 property:P47 resource:Q4221575 }
Traiguera Troiandove
action is_in
entity Troiandove
action find
entity Traiguera
relation shares border with
['Traiguera', 'shares border with', 'Troiandove']
ASK WHERE { resource:Traiguera property:shares_border_with resource:Troiandove }
[]
political territorial entity
SYSTEM
NO
(Q1645728,P47,Q4221575)
action is_in
entity Q4221575
action find
entity Q1645728
relation P47
[ANSWER]
['Q1645728', 'P47', 'Q4221575']
ASK WHERE { resource:Q1645728 property:P47 resource:Q4221575 }
No
action is_in
entity Troiandove
action find
entity Traiguera
relation shares border with
['Traiguera', 'shares border with', 'Troiandove']
ASK WHERE { resource:Traiguera property:shares_border_with resource:Troiandove }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q486972 Q56061 Q1048835
USER
Which political territories are twin town of max number of human settlements or administrative territories ?
(c(Q1048835),P190,c(Q486972)|c(Q56061))
action argmax
action union
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action find_tuple_counts
relation P190
type Q1048835
type Q56061
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?i WHERE { VALUES ( ?g ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?n rdf:type ?g } GROUP BY ?i } . FILTER ( ?a = ?x ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?k WHERE { { ?k rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q486972 . ?k property:P190 ?t } UNION { ?k property:P190 ?t . ?k rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q56061 } } GROUP BY ?k } } }
action argmax
action union
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action find_tuple_counts
relation sister city
type political territorial entity
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?i WHERE { VALUES ( ?g ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?n rdf:type ?g } GROUP BY ?i } . FILTER ( ?a = ?x ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?k WHERE { { ?k rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:human_settlement . ?k property:sister_city ?t } UNION { ?k property:sister_city ?t . ?k rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:administrative_territorial_entity } } GROUP BY ?k } } }
[]
human settlement administrative territorial entity political territorial entity
Q436491 Q5826
SYSTEM
Altea, Xi'an
Q436491 Q5826
(c(Q1048835),P190,c(Q486972)|c(Q56061))
action argmax
action union
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action find_tuple_counts
relation P190
type Q1048835
type Q56061
[ANSWERS] are twin town of max number of human settlements or administrative territories
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?i WHERE { VALUES ( ?g ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?n rdf:type ?g } GROUP BY ?i } . FILTER ( ?a = ?x ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?k WHERE { { ?k rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q486972 . ?k property:P190 ?t } UNION { ?k property:P190 ?t . ?k rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q56061 } } GROUP BY ?k } } }
Altea Xi'an
Altea and Xi'an are twin town of max number of human settlements or administrative territories
Altea Xi'an
action argmax
action union
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action find_tuple_counts
relation sister city
type political territorial entity
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?i WHERE { VALUES ( ?g ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?n rdf:type ?g } GROUP BY ?i } . FILTER ( ?a = ?x ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?k WHERE { { ?k rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:human_settlement . ?k property:sister_city ?t } UNION { ?k property:sister_city ?t . ?k rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:administrative_territorial_entity } } GROUP BY ?k } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10826620 Q1645981
P17
Q15617994
USER
Which administrative territories are Rossell, Baix Maestrat or Thổ Sơn located in ?
OR((Q1645981,P17,c(Q15617994)), (Q10826620,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1645981
relation P17
action find
entity Q10826620
relation P17
type Q15617994
{'OR': [['Q1645981', 'P17', {'concept': 'Q15617994'}], ['Q10826620', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { VALUES ( ?w ) { ( resource:Q1645981 ) ( resource:Q10826620 ) } . ?w property:P17 ?p } }
Thổ Sơn Rossell, Baix Maestrat
action filter_type
action union
action find
entity Rossell, Baix Maestrat
relation country
action find
entity Thổ Sơn
relation country
type designation for an administrative territorial entity
{'OR': [['Rossell, Baix Maestrat', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Thổ Sơn', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?w ) { ( resource:Rossell,_Baix_Maestrat ) ( resource:Thổ_Sơn ) } . ?w property:country ?p } }
[]
designation for an administrative territorial entity
Q29 Q881
SYSTEM
Spain, Vietnam
Q29 Q881
OR((Q1645981,P17,c(Q15617994)), (Q10826620,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1645981
relation P17
action find
entity Q10826620
relation P17
type Q15617994
[ANSWERS] are Rossell, Baix Maestrat or Thổ Sơn located in
{'OR': [['Q1645981', 'P17', {'concept': 'Q15617994'}], ['Q10826620', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { VALUES ( ?w ) { ( resource:Q1645981 ) ( resource:Q10826620 ) } . ?w property:P17 ?p } }
Spain Vietnam
Spain and Vietnam are Rossell, Baix Maestrat or Thổ Sơn located in
Spain Vietnam
action filter_type
action union
action find
entity Rossell, Baix Maestrat
relation country
action find
entity Thổ Sơn
relation country
type designation for an administrative territorial entity
{'OR': [['Rossell, Baix Maestrat', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Thổ Sơn', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?w ) { ( resource:Rossell,_Baix_Maestrat ) ( resource:Thổ_Sơn ) } . ?w property:country ?p } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P194
Q701632 Q11204 Q15617994
USER
How many administrative territories have around 1 municipal councils and legislatures as their representative body ?
(c(Q15617994),P194,c(Q701632)|c(Q11204))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q11204
value 1
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?t ) WHERE { { ?b rdf:type ontology:Q11204 . ?e rdf:type ontology:Q15617994 . ?e property:P194 ?b } UNION { ?b rdf:type ontology:Q701632 . ?e rdf:type ontology:Q15617994 . ?e property:P194 ?b } } GROUP BY ?e } . FILTER ( ?t = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?t ) WHERE { { ?b rdf:type ontology:legislature . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:legislative_body ?b } UNION { ?b rdf:type ontology:municipal_council . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:legislative_body ?b } } GROUP BY ?e } . FILTER ( ?t = 1 ) }
[]
municipal council legislature designation for an administrative territorial entity
SYSTEM
54
Q805 Q800 Q1462 Q1250 Q2806757 Q148 Q189 Q786 Q710 Q1460 Q159 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q12761 Q244 Q31 Q30 Q37 Q1447 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q1458 Q227 Q347 Q17 Q902 Q191 Q114 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q1222 Q774 Q1016 Q27 Q1243 Q12626 Q672 Q1237
(c(Q15617994),P194,c(Q701632)|c(Q11204))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q11204
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?t ) WHERE { { ?b rdf:type ontology:Q11204 . ?e rdf:type ontology:Q15617994 . ?e property:P194 ?b } UNION { ?b rdf:type ontology:Q701632 . ?e rdf:type ontology:Q15617994 . ?e property:P194 ?b } } GROUP BY ?e } . FILTER ( ?t = 1 ) }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia 105 Mile Post Indian Reserve No. 2 People's Republic of China Iceland Dominican Republic Kiribati Sicily Russia Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Seine-Saint-Denis Barbados Belgium United States of America Lithuania Apulia Lazio Abruzzo Finistère Montenegro Nord Tuscany Marche Sudan Calabria Azerbaijan Liechtenstein Japan Bangladesh Estonia Kenya Lombardy Bhutan Ecuador Niue Vanuatu Saint Lucia East Timor Aosta Valley Guatemala Libya Ireland Veneto Meurthe-et-Moselle Tuvalu Trentino-South Tyrol
54
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?t ) WHERE { { ?b rdf:type ontology:legislature . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:legislative_body ?b } UNION { ?b rdf:type ontology:municipal_council . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:legislative_body ?b } } GROUP BY ?e } . FILTER ( ?t = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1906397
P1001
Q12737077
USER
Which occupation presides the jurisdiction over San Pedro del Valle ?
(c(Q12737077),P1001,Q1906397)
action filter_type
action find_reverse
entity Q1906397
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q1906397']
SELECT DISTINCT ?y WHERE { ?y property:P1001 resource:Q1906397 . ?y rdf:type ontology:Q12737077 }
San Pedro del Valle
action filter_type
action find_reverse
entity San Pedro del Valle
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'San Pedro del Valle']
SELECT DISTINCT ?y WHERE { ?y property:applies_to_jurisdiction resource:San_Pedro_del_Valle . ?y rdf:type ontology:occupation }
[]
occupation
Q26696877
SYSTEM
mayor of San Pedro del Valle
Q26696877
(c(Q12737077),P1001,Q1906397)
action filter_type
action find_reverse
entity Q1906397
relation P1001
type Q12737077
The [ANSWER] presides the jurisdiction over San Pedro del Valle
[{'concept': 'Q12737077'}, 'P1001', 'Q1906397']
SELECT DISTINCT ?y WHERE { ?y property:P1001 resource:Q1906397 . ?y rdf:type ontology:Q12737077 }
mayor of San Pedro del Valle
The mayor of San Pedro del Valle presides the jurisdiction over San Pedro del Valle
mayor of San Pedro del Valle
action filter_type
action find_reverse
entity San Pedro del Valle
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'San Pedro del Valle']
SELECT DISTINCT ?y WHERE { ?y property:applies_to_jurisdiction resource:San_Pedro_del_Valle . ?y rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1645728
P6
Q502895
USER
Who is the head of the government of Traiguera ?
(Q1645728,P6,c(Q502895))
action filter_type
action find
entity Q1645728
relation P6
type Q502895
['Q1645728', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q1645728 property:P6 ?c . ?c rdf:type ontology:Q502895 }
Traiguera
action filter_type
action find
entity Traiguera
relation head of government
type common name
['Traiguera', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Traiguera property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]
common name
Q14066415
SYSTEM
Javier Ferrer Bort (PSOE)
Q14066415
(Q1645728,P6,c(Q502895))
action filter_type
action find
entity Q1645728
relation P6
type Q502895
The head of the government of Traiguera is Francisco [ANSWER]
['Q1645728', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q1645728 property:P6 ?c . ?c rdf:type ontology:Q502895 }
Javier Ferrer Bort (PSOE)
The head of the government of Traiguera is Francisco Javier Ferrer Bort (PSOE)
Javier Ferrer Bort (PSOE)
action filter_type
action find
entity Traiguera
relation head of government
type common name
['Traiguera', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Traiguera property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q881
P610
Q14524493
USER
Which is the highest peak of Vietnam ?
(Q881,P610,c(Q14524493))
action filter_type
action find
entity Q881
relation P610
type Q14524493
['Q881', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?w WHERE { resource:Q881 property:P610 ?w . ?w rdf:type ontology:Q14524493 }
Vietnam
action filter_type
action find
entity Vietnam
relation highest point
type terrain
['Vietnam', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?w WHERE { resource:Vietnam property:highest_point ?w . ?w rdf:type ontology:terrain }
[]
terrain
Q123782
SYSTEM
Fansipan
Q123782
(Q881,P610,c(Q14524493))
action filter_type
action find
entity Q881
relation P610
type Q14524493
The highest peak of Vietnam is the [ANSWER]
['Q881', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?w WHERE { resource:Q881 property:P610 ?w . ?w rdf:type ontology:Q14524493 }
Fansipan
The highest peak of Vietnam is the Fansipan
Fansipan
action filter_type
action find
entity Vietnam
relation highest point
type terrain
['Vietnam', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?w WHERE { resource:Vietnam property:highest_point ?w . ?w rdf:type ontology:terrain }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q123782
P30
Q2221906
USER
Which geographic location is that terrain located in ?
(Q123782,P30,c(Q2221906))
action filter_type
action find
entity Q123782
relation P30
type Q2221906
['Q123782', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?r WHERE { resource:Q123782 property:P30 ?r . ?r rdf:type ontology:Q2221906 }
Fansipan
action filter_type
action find
entity Fansipan
relation continent
type geographic location
['Fansipan', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?r WHERE { resource:Fansipan property:continent ?r . ?r rdf:type ontology:geographic_location }
[]
geographic location
Q48
SYSTEM
Asia
Q48
(Q123782,P30,c(Q2221906))
action filter_type
action find
entity Q123782
relation P30
type Q2221906
That terrain is located in [ANSWER]
['Q123782', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?r WHERE { resource:Q123782 property:P30 ?r . ?r rdf:type ontology:Q2221906 }
Asia
That terrain is located in Asia
Asia
action filter_type
action find
entity Fansipan
relation continent
type geographic location
['Fansipan', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?r WHERE { resource:Fansipan property:continent ?r . ?r rdf:type ontology:geographic_location }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P30
Q1914636 Q8425
USER
How many activities and societies have their location in that geographic location ?
(c(Q1914636),P30,Q48) (c(Q8425),P30,Q48) (c(Q1914636),P30,Q48) (c(Q8425),P30,Q48)
action count
action union
action filter_type
action find_reverse
entity Q48
relation P30
type Q1914636
action filter_type
action find_reverse
entity Q48
relation P30
type Q8425
[{'concept': 'Q1914636'}, 'P30', 'Q48'] [{'concept': 'Q8425'}, 'P30', 'Q48'] [{'concept': 'Q1914636'}, 'P30', 'Q48'] [{'concept': 'Q8425'}, 'P30', 'Q48']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1914636 ) ( ontology:Q8425 ) } }
action count
action union
action filter_type
action find_reverse
entity Asia
relation continent
type activity
action filter_type
action find_reverse
entity Asia
relation continent
type society
[{'concept': 'activity'}, 'continent', 'Asia'] [{'concept': 'society'}, 'continent', 'Asia'] [{'concept': 'activity'}, 'continent', 'Asia'] [{'concept': 'society'}, 'continent', 'Asia']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:activity ) ( ontology:society ) } }
[]
activity society
SYSTEM
1 activities and 2 societies
Q756615 Q1627675 Q11772
(c(Q1914636),P30,Q48) (c(Q8425),P30,Q48) (c(Q1914636),P30,Q48) (c(Q8425),P30,Q48)
action count
action union
action filter_type
action find_reverse
entity Q48
relation P30
type Q1914636
action filter_type
action find_reverse
entity Q48
relation P30
type Q8425
[ANSWER]
[{'concept': 'Q1914636'}, 'P30', 'Q48'] [{'concept': 'Q8425'}, 'P30', 'Q48'] [{'concept': 'Q1914636'}, 'P30', 'Q48'] [{'concept': 'Q8425'}, 'P30', 'Q48']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1914636 ) ( ontology:Q8425 ) } }
Chinese art Pyu city-states Ancient Greece
1 activities and 2 societies
action count
action union
action filter_type
action find_reverse
entity Asia
relation continent
type activity
action filter_type
action find_reverse
entity Asia
relation continent
type society
[{'concept': 'activity'}, 'continent', 'Asia'] [{'concept': 'society'}, 'continent', 'Asia'] [{'concept': 'activity'}, 'continent', 'Asia'] [{'concept': 'society'}, 'continent', 'Asia']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:activity ) ( ontology:society ) } }
[]