Simple Question (Direct)
Simple Question
Q15368
P138
Q1048835
USER
Which political territory is the etymology of Conca de Barberà ?
(Q15368,P138,c(Q1048835))
action filter_type
action find
entity Q15368
relation P138
type Q1048835
['Q15368', 'P138', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q15368 property:P138 ?a . ?a rdf:type ontology:Q1048835 }
Conca de Barberà
action filter_type
action find
entity Conca de Barberà
relation named after
type political territorial entity
['Conca de Barberà', 'named after', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Conca_de_Barberà property:named_after ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q730021
SYSTEM
Barberà de la Conca
Q730021
(Q15368,P138,c(Q1048835))
action filter_type
action find
entity Q15368
relation P138
type Q1048835
[ANSWER] is the etymology of Conca de Barberà
['Q15368', 'P138', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q15368 property:P138 ?a . ?a rdf:type ontology:Q1048835 }
Barberà de la Conca
Barberà de la Conca is the etymology of Conca de Barberà
Barberà de la Conca
action filter_type
action find
entity Conca de Barberà
relation named after
type political territorial entity
['Conca de Barberà', 'named after', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Conca_de_Barberà property:named_after ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15368
P1376
Q1048835
USER
Which political territory is the county seat for that comarca of Catalonia ?
(c(Q1048835),P1376,Q730021)
action filter_type
action find_reverse
entity Q15368
relation P1376
type Q1048835
[{'concept': 'Q1048835'}, 'P1376', 'Q730021']
SELECT DISTINCT ?p WHERE { ?p property:P1376 resource:Q15368 . ?p rdf:type ontology:Q1048835 }
Conca de Barberà
action filter_type
action find_reverse
entity Conca de Barberà
relation capital of
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital of', 'Barberà de la Conca']
SELECT DISTINCT ?p WHERE { ?p property:capital_of resource:Conca_de_Barberà . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q761735
SYSTEM
Montblanc
Q761735
(c(Q1048835),P1376,Q730021)
action filter_type
action find_reverse
entity Q15368
relation P1376
type Q1048835
[ANSWER] is the county seat for that comarca of Catalonia
[{'concept': 'Q1048835'}, 'P1376', 'Q730021']
SELECT DISTINCT ?p WHERE { ?p property:P1376 resource:Q15368 . ?p rdf:type ontology:Q1048835 }
Montblanc
Montblanc is the county seat for that comarca of Catalonia
Montblanc
action filter_type
action find_reverse
entity Conca de Barberà
relation capital of
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital of', 'Barberà de la Conca']
SELECT DISTINCT ?p WHERE { ?p property:capital_of resource:Conca_de_Barberà . ?p rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q761735
P19
Q502895
USER
How many people have birthplace at Montblanc ?
(c(Q502895),P19,Q761735)
action count
action filter_type
action find_reverse
entity Q761735
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q761735']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:P19 resource:Q761735 . ?g rdf:type ontology:Q502895 }
Montblanc
action count
action filter_type
action find_reverse
entity Montblanc
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Montblanc']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:place_of_birth resource:Montblanc . ?g rdf:type ontology:common_name }
[]
common name
SYSTEM
29
Q11926937 Q2784998 Q8201551 Q11928867 Q6205521 Q4894247 Q19257926 Q19257928 Q19257933 Q16188209 Q16189701 Q10357354 Q16189737 Q11919406 Q11922894 Q11944564 Q19257922 Q19257929 Q19257931 Q11904801 Q11924912 Q9013049 Q11940951 Q11905783 Q16943467 Q17301189 Q11922904 Q11037788 Q19257924
(c(Q502895),P19,Q761735)
action count
action filter_type
action find_reverse
entity Q761735
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q761735']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:P19 resource:Q761735 . ?g rdf:type ontology:Q502895 }
Ismael Balanyà i Moix Maties Palau Ferré Antoni Palau i Dulcet Josep Porter i Rovira Joan Vizcarra Magin Catalá Josep Gomis i Martí Macià Guarro i Ribé Maties Vives i March Agustí Causí i Marsal Josep Conangla i Fontanilles Ramon Fort Jaume Conesa Enriqueta Moix i Maré Francesc d'Assís Bonastre i Bertran Ramon Belart i Miquel Rafael Folch i Andreu Marià Pedrol i Balart Pere Sanahuja i Vallverdú Albert Vidal i Jordana Guillem Timor Josep Andreu Pere Daguí Antoni Andreu i Abelló Josep Maria Poblet i Guarro Jaume Llecha i Sans Francesc de Castellví i Obando Josep Andreu Domingo Josep Folch i Folch
29
action count
action filter_type
action find_reverse
entity Montblanc
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Montblanc']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:place_of_birth resource:Montblanc . ?g rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q1048835
USER
Which political territories have diplomatic associations with atleast 53 political territories or administrative territories ?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action atleast
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 53
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?s >= 53 ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?s ) WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?q } }
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 53
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?s >= 53 ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?s ) WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?q } }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action atleast
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 53
[ANSWERS] have diplomatic associations with atleast 53 political territories or administrative territories
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?s >= 53 ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?s ) WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?q } }
Germany Australia
Germany and Australia have diplomatic associations with atleast 53 political territories or administrative territories
Germany Australia
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 53
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?s >= 53 ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?s ) WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?q } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6122
P530
Q15617994
USER
Do Asti have diplomatic relations with those political territories ?
(Q6122,P530,Q183) (Q6122,P530,Q408)
action is_in
entity prev_answer
action find
entity Q6122
relation P530
['Q6122', 'P530', 'Q183'] ['Q6122', 'P530', 'Q408']
ASK WHERE { VALUES ( ?f ) { ( resource:Q183 ) ( resource:Q408 ) } . resource:Q6122 property:P530 ?f }
Asti
action is_in
entity prev_answer
action find
entity Asti
relation diplomatic relation
['Asti', 'diplomatic relation', 'Germany'] ['Asti', 'diplomatic relation', 'Australia']
ASK WHERE { VALUES ( ?f ) { ( resource:Germany ) ( resource:Australia ) } . resource:Asti property:diplomatic_relation ?f }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q6122,P530,Q183) (Q6122,P530,Q408)
action is_in
entity prev_answer
action find
entity Q6122
relation P530
[ANSWER]
['Q6122', 'P530', 'Q183'] ['Q6122', 'P530', 'Q408']
ASK WHERE { VALUES ( ?f ) { ( resource:Q183 ) ( resource:Q408 ) } . resource:Q6122 property:P530 ?f }
No
action is_in
entity prev_answer
action find
entity Asti
relation diplomatic relation
['Asti', 'diplomatic relation', 'Germany'] ['Asti', 'diplomatic relation', 'Australia']
ASK WHERE { VALUES ( ?f ) { ( resource:Germany ) ( resource:Australia ) } . resource:Asti property:diplomatic_relation ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q730021
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of Barberà de la Conca ?
(Q730021,P1313,c(Q12737077))
action filter_type
action find
entity Q730021
relation P1313
type Q12737077
['Q730021', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q730021 property:P1313 ?e . ?e rdf:type ontology:Q12737077 }
Barberà de la Conca
action filter_type
action find
entity Barberà de la Conca
relation office held by head of government
type occupation
['Barberà de la Conca', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Barberà_de_la_Conca property:office_held_by_head_of_government ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q26699736
SYSTEM
mayor of Barbará
Q26699736
(Q730021,P1313,c(Q12737077))
action filter_type
action find
entity Q730021
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of Barberà de la Conca
['Q730021', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q730021 property:P1313 ?e . ?e rdf:type ontology:Q12737077 }
mayor of Barbará
The mayor of Barbará serves as the political office that is fulfilled by the head of the government of Barberà de la Conca
mayor of Barbará
action filter_type
action find
entity Barberà de la Conca
relation office held by head of government
type occupation
['Barberà de la Conca', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Barberà_de_la_Conca property:office_held_by_head_of_government ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q730021
P47
Q1048835
USER
Which political territories are next to the border of Barberà de la Conca ?
(c(Q1048835),P47,Q730021)
action filter_type
action find
entity Q730021
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q730021']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1048835 . resource:Q730021 property:P47 ?a }
Barberà de la Conca
action filter_type
action find
entity Barberà de la Conca
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Barberà de la Conca']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Barberà_de_la_Conca property:shares_border_with ?a }
[]
political territorial entity
Q761735 Q1995219 Q1248497
SYSTEM
Montblanc, Sarral, Solivella
Q1248551 Q1248497 Q367969 Q761735 Q550221 Q1995219
(c(Q1048835),P47,Q730021)
action filter_type
action find
entity Q730021
relation P47
type Q1048835
[ANSWERS] are next to the border of Barberà de la Conca
[{'concept': 'Q1048835'}, 'P47', 'Q730021']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1048835 . resource:Q730021 property:P47 ?a }
Pira Solivella Figuerola del Camp Montblanc Cabra del Camp Sarral
Montblanc, Sarral and Solivella are next to the border of Barberà de la Conca
Montblanc Sarral Solivella
action filter_type
action find
entity Barberà de la Conca
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Barberà de la Conca']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Barberà_de_la_Conca property:shares_border_with ?a }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q761735 Q1995219 Q1248497
P47
Q1048835
USER
Which political territories are bordered by Montblanc, Sarral and Solivella ?
(c(Q1048835),P47,Q761735) (c(Q1048835),P47,Q1995219) (c(Q1048835),P47,Q1248497)
action union
action filter_type
action find
entity Q761735
relation P47
type Q1048835
action filter_type
action find
entity Q1995219
relation P47
type Q1048835
action filter_type
action find
entity Q1248497
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q761735'] [{'concept': 'Q1048835'}, 'P47', 'Q1995219'] [{'concept': 'Q1048835'}, 'P47', 'Q1248497']
SELECT DISTINCT ?k WHERE { { resource:Q761735 property:P47 ?k . ?k rdf:type ontology:Q1048835 } UNION { resource:Q1995219 property:P47 ?k . ?k rdf:type ontology:Q1048835 } }
Montblanc Sarral Solivella
action union
action filter_type
action find
entity Montblanc
relation shares border with
type political territorial entity
action filter_type
action find
entity Sarral
relation shares border with
type political territorial entity
action filter_type
action find
entity Solivella
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Montblanc'] [{'concept': 'political territorial entity'}, 'shares border with', 'Sarral'] [{'concept': 'political territorial entity'}, 'shares border with', 'Solivella']
SELECT DISTINCT ?k WHERE { { resource:Montblanc property:shares_border_with ?k . ?k rdf:type ontology:political_territorial_entity } UNION { resource:Sarral property:shares_border_with ?k . ?k rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q825883 Q1995219 Q1905685
SYSTEM
Valls, Sarral, Vallbona de les Monges
Q1248551 Q730021 Q654198 Q776730 Q825883 Q745771 Q1229283 Q367969 Q931134 Q280721 Q730040 Q1248557 Q1248512 Q730021 Q983585 Q550221 Q1248581 Q1230137 Q1248497 Q1248551 Q730021 Q654198 Q1995219 Q1230137 Q1248489 Q1905685
(c(Q1048835),P47,Q761735) (c(Q1048835),P47,Q1995219) (c(Q1048835),P47,Q1248497)
action union
action filter_type
action find
entity Q761735
relation P47
type Q1048835
action filter_type
action find
entity Q1995219
relation P47
type Q1048835
action filter_type
action find
entity Q1248497
relation P47
type Q1048835
[ANSWERS] are bordered by Montblanc, Sarral and Solivella
[{'concept': 'Q1048835'}, 'P47', 'Q761735'] [{'concept': 'Q1048835'}, 'P47', 'Q1995219'] [{'concept': 'Q1048835'}, 'P47', 'Q1248497']
SELECT DISTINCT ?k WHERE { { resource:Q761735 property:P47 ?k . ?k rdf:type ontology:Q1048835 } UNION { resource:Q1995219 property:P47 ?k . ?k rdf:type ontology:Q1048835 } }
Pira Barberà de la Conca Blancafort Vimbodí i Poblet Valls Mont-ral L'Espluga de Francolí Figuerola del Camp Vilaverd La Riba Rocafort de Queralt Les Piles Conesa Barberà de la Conca El Pont d'Armentera Cabra del Camp Pontils Forès Solivella Pira Barberà de la Conca Blancafort Sarral Forès Passanant i Belltall Vallbona de les Monges
Valls, Sarral and Vallbona de les Monges are bordered by Montblanc, Sarral and Solivella
Valls Sarral Vallbona de les Monges
action union
action filter_type
action find
entity Montblanc
relation shares border with
type political territorial entity
action filter_type
action find
entity Sarral
relation shares border with
type political territorial entity
action filter_type
action find
entity Solivella
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Montblanc'] [{'concept': 'political territorial entity'}, 'shares border with', 'Sarral'] [{'concept': 'political territorial entity'}, 'shares border with', 'Solivella']
SELECT DISTINCT ?k WHERE { { resource:Montblanc property:shares_border_with ?k . ?k rdf:type ontology:political_territorial_entity } UNION { resource:Sarral property:shares_border_with ?k . ?k rdf:type ontology:political_territorial_entity } }
[]