Simple Question (Direct)
Simple Question
Q11686320
P20
Q515
USER
Which city is the place of death of Juan Antonio Arguelles Rius ?
(Q11686320,P20,c(Q515))
action filter_type
action find
entity Q11686320
relation P20
type Q515
['Q11686320', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q515 . resource:Q11686320 property:P20 ?c }
Juan Antonio Arguelles Rius
action filter_type
action find
entity Juan Antonio Arguelles Rius
relation place of death
type city
['Juan Antonio Arguelles Rius', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:city . resource:Juan_Antonio_Arguelles_Rius property:place_of_death ?c }
[]
city
Q488869
SYSTEM
Benalmádena
Q488869
(Q11686320,P20,c(Q515))
action filter_type
action find
entity Q11686320
relation P20
type Q515
[ANSWER] is the place of death of Juan Antonio Arguelles Rius
['Q11686320', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q515 . resource:Q11686320 property:P20 ?c }
Benalmádena
Benalmádena is the place of death of Juan Antonio Arguelles Rius
Benalmádena
action filter_type
action find
entity Juan Antonio Arguelles Rius
relation place of death
type city
['Juan Antonio Arguelles Rius', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:city . resource:Juan_Antonio_Arguelles_Rius property:place_of_death ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q488869
P47
Q1048835
USER
Which political territories share border with that city ?
(Q488869,P47,c(Q1048835))
action filter_type
action find
entity Q488869
relation P47
type Q1048835
['Q488869', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q488869 property:P47 ?l . ?l rdf:type ontology:Q1048835 }
Benalmádena
action filter_type
action find
entity Benalmádena
relation shares border with
type political territorial entity
['Benalmádena', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Benalmádena property:shares_border_with ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q976528 Q492737 Q492735
SYSTEM
Alhaurín de la Torre, Torremolinos, Fuengirola
Q976528 Q492737 Q492735
(Q488869,P47,c(Q1048835))
action filter_type
action find
entity Q488869
relation P47
type Q1048835
[ANSWERS] share border with that city
['Q488869', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q488869 property:P47 ?l . ?l rdf:type ontology:Q1048835 }
Alhaurín de la Torre Torremolinos Fuengirola
Alhaurín de la Torre, Torremolinos and Fuengirola share border with that city
Alhaurín de la Torre Torremolinos Fuengirola
action filter_type
action find
entity Benalmádena
relation shares border with
type political territorial entity
['Benalmádena', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Benalmádena property:shares_border_with ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q427505
Q1048835
USER
And also tell me about Majadahonda?
(Q427505,P47,c(Q1048835))
action filter_type
action find
entity Q427505
relation P47
type Q1048835
['Q427505', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { resource:Q427505 property:P47 ?c . ?c rdf:type ontology:Q1048835 }
Majadahonda
action filter_type
action find
entity Majadahonda
relation shares border with
type political territorial entity
['Majadahonda', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Majadahonda property:shares_border_with ?c . ?c rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q973325 Q1751916 Q592747
SYSTEM
Villanueva de la Cañada, Villanueva del Pardillo, Las Rozas de Madrid
Q592747 Q973325 Q639422 Q1641013 Q1751916
(Q427505,P47,c(Q1048835))
action filter_type
action find
entity Q427505
relation P47
type Q1048835
[ANSWERS]
['Q427505', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { resource:Q427505 property:P47 ?c . ?c rdf:type ontology:Q1048835 }
Las Rozas de Madrid Villanueva de la Cañada Pozuelo de Alarcón Boadilla del Monte Villanueva del Pardillo
Villanueva de la Cañada Villanueva del Pardillo Las Rozas de Madrid
action filter_type
action find
entity Majadahonda
relation shares border with
type political territorial entity
['Majadahonda', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Majadahonda property:shares_border_with ?c . ?c rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q427505
P1001
Q12737077
USER
Which occupation has jurisdiction over Majadahonda ?
(c(Q12737077),P1001,Q427505)
action filter_type
action find_reverse
entity Q427505
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q427505']
SELECT DISTINCT ?x WHERE { ?x property:P1001 resource:Q427505 . ?x rdf:type ontology:Q12737077 }
Majadahonda
action filter_type
action find_reverse
entity Majadahonda
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Majadahonda']
SELECT DISTINCT ?x WHERE { ?x property:applies_to_jurisdiction resource:Majadahonda . ?x rdf:type ontology:occupation }
[]
occupation
Q26698170
SYSTEM
mayor of Majadahonda
Q26698170
(c(Q12737077),P1001,Q427505)
action filter_type
action find_reverse
entity Q427505
relation P1001
type Q12737077
The [ANSWER] has jurisdiction over Majadahonda
[{'concept': 'Q12737077'}, 'P1001', 'Q427505']
SELECT DISTINCT ?x WHERE { ?x property:P1001 resource:Q427505 . ?x rdf:type ontology:Q12737077 }
mayor of Majadahonda
The mayor of Majadahonda has jurisdiction over Majadahonda
mayor of Majadahonda
action filter_type
action find_reverse
entity Majadahonda
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Majadahonda']
SELECT DISTINCT ?x WHERE { ?x property:applies_to_jurisdiction resource:Majadahonda . ?x rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q427505
P190
Q20667921
USER
Which french administrative division is a sister city of that political territory ?
(c(Q20667921),P190,Q26698170)
action filter_type
action find
entity Q427505
relation P190
type Q20667921
[{'concept': 'Q20667921'}, 'P190', 'Q26698170']
SELECT DISTINCT ?v WHERE { resource:Q427505 property:P190 ?v . ?v rdf:type ontology:Q20667921 }
Majadahonda
action filter_type
action find
entity Majadahonda
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'mayor of Majadahonda']
SELECT DISTINCT ?v WHERE { resource:Majadahonda property:sister_city ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q194160
SYSTEM
Clamart
Q194160
(c(Q20667921),P190,Q26698170)
action filter_type
action find
entity Q427505
relation P190
type Q20667921
[ANSWER] is a sister city of that political territory
[{'concept': 'Q20667921'}, 'P190', 'Q26698170']
SELECT DISTINCT ?v WHERE { resource:Q427505 property:P190 ?v . ?v rdf:type ontology:Q20667921 }
Clamart
Clamart is a sister city of that political territory
Clamart
action filter_type
action find
entity Majadahonda
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'mayor of Majadahonda']
SELECT DISTINCT ?v WHERE { resource:Majadahonda property:sister_city ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q427505
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of Majadahonda ?
(Q427505,P1313,c(Q12737077))
action filter_type
action find
entity Q427505
relation P1313
type Q12737077
['Q427505', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q427505 property:P1313 ?d . ?d rdf:type ontology:Q12737077 }
Majadahonda
action filter_type
action find
entity Majadahonda
relation office held by head of government
type occupation
['Majadahonda', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Majadahonda property:office_held_by_head_of_government ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q26698170
SYSTEM
mayor of Majadahonda
Q26698170
(Q427505,P1313,c(Q12737077))
action filter_type
action find
entity Q427505
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of Majadahonda
['Q427505', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q427505 property:P1313 ?d . ?d rdf:type ontology:Q12737077 }
mayor of Majadahonda
The mayor of Majadahonda serves as the political office that is fulfilled by the head of the government of Majadahonda
mayor of Majadahonda
action filter_type
action find
entity Majadahonda
relation office held by head of government
type occupation
['Majadahonda', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Majadahonda property:office_held_by_head_of_government ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q427505
P159
Q43229
USER
Which organization has the principal seat at Majadahonda ?
(c(Q43229),P159,Q427505)
action filter_type
action find_reverse
entity Q427505
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q427505']
SELECT DISTINCT ?d WHERE { ?d property:P159 resource:Q427505 . ?d rdf:type ontology:Q43229 }
Majadahonda
action filter_type
action find_reverse
entity Majadahonda
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Majadahonda']
SELECT DISTINCT ?d WHERE { ?d property:headquarters_location resource:Majadahonda . ?d rdf:type ontology:organization }
[]
organization
Q544532
SYSTEM
MAPFRE
Q544532
(c(Q43229),P159,Q427505)
action filter_type
action find_reverse
entity Q427505
relation P159
type Q43229
[ANSWER] has the principal seat at Majadahonda
[{'concept': 'Q43229'}, 'P159', 'Q427505']
SELECT DISTINCT ?d WHERE { ?d property:P159 resource:Q427505 . ?d rdf:type ontology:Q43229 }
MAPFRE
MAPFRE has the principal seat at Majadahonda
MAPFRE
action filter_type
action find_reverse
entity Majadahonda
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Majadahonda']
SELECT DISTINCT ?d WHERE { ?d property:headquarters_location resource:Majadahonda . ?d rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19307479 Q427505
P47 P276
Q56061
USER
Which administrative territories share the border with Majadahonda or can Koningstraat be found ?
OR((Q427505,P47,c(Q56061)), (Q19307479,P276,c(Q56061)))
action filter_type
action union
action find
entity Q427505
relation P47
action find
entity Q19307479
relation P276
type Q56061
{'OR': [['Q427505', 'P47', {'concept': 'Q56061'}], ['Q19307479', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q427505 property:P47 ?b } UNION { resource:Q19307479 property:P276 ?b } } . ?b rdf:type ontology:Q56061 }
Koningstraat Majadahonda
action filter_type
action union
action find
entity Majadahonda
relation shares border with
action find
entity Koningstraat
relation location
type administrative territorial entity
{'OR': [['Majadahonda', 'shares border with', {'concept': 'administrative territorial entity'}], ['Koningstraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Majadahonda property:shares_border_with ?b } UNION { resource:Koningstraat property:location ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807 Q2414583
SYSTEM
Madrid, Oirschot
Q2807 Q2414583
OR((Q427505,P47,c(Q56061)), (Q19307479,P276,c(Q56061)))
action filter_type
action union
action find
entity Q427505
relation P47
action find
entity Q19307479
relation P276
type Q56061
[ANSWERS] share the border with Majadahonda or can Koningstraat be found
{'OR': [['Q427505', 'P47', {'concept': 'Q56061'}], ['Q19307479', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q427505 property:P47 ?b } UNION { resource:Q19307479 property:P276 ?b } } . ?b rdf:type ontology:Q56061 }
Madrid Oirschot
Madrid and Oirschot share the border with Majadahonda or can Koningstraat be found
Madrid Oirschot
action filter_type
action union
action find
entity Majadahonda
relation shares border with
action find
entity Koningstraat
relation location
type administrative territorial entity
{'OR': [['Majadahonda', 'shares border with', {'concept': 'administrative territorial entity'}], ['Koningstraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Majadahonda property:shares_border_with ?b } UNION { resource:Koningstraat property:location ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2807
P1376
Q13220204 Q15617994
USER
How many administrative country subdivisions or administrative territories have Madrid as their capital ?
(Q2807,P1376,c(Q13220204)) (Q2807,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q2807
relation P1376
type Q13220204
action filter_type
action find
entity Q2807
relation P1376
type Q15617994
['Q2807', 'P1376', {'concept': 'Q13220204'}] ['Q2807', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?o ) { ( ontology:Q13220204 ) ( ontology:Q15617994 ) } . ?q rdf:type ?o }
Madrid
action count
action union
action filter_type
action find
entity Madrid
relation capital of
type second-level administrative country subdivision
action filter_type
action find
entity Madrid
relation capital of
type designation for an administrative territorial entity
['Madrid', 'capital of', {'concept': 'second-level administrative country subdivision'}] ['Madrid', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?o ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?q rdf:type ?o }
[]
second-level administrative country subdivision designation for an administrative territorial entity
SYSTEM
2
Q24069437 Q29
(Q2807,P1376,c(Q13220204)) (Q2807,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q2807
relation P1376
type Q13220204
action filter_type
action find
entity Q2807
relation P1376
type Q15617994
[ANSWER]
['Q2807', 'P1376', {'concept': 'Q13220204'}] ['Q2807', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?o ) { ( ontology:Q13220204 ) ( ontology:Q15617994 ) } . ?q rdf:type ?o }
Madrid Province Spain
2
action count
action union
action filter_type
action find
entity Madrid
relation capital of
type second-level administrative country subdivision
action filter_type
action find
entity Madrid
relation capital of
type designation for an administrative territorial entity
['Madrid', 'capital of', {'concept': 'second-level administrative country subdivision'}] ['Madrid', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?o ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?q rdf:type ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2807
P417
Q1509831
USER
What is the name of the patron saint of that administrative territory ?
action filter_type
action find
entity Q2807
relation P417
type Q1509831
SELECT DISTINCT ?m WHERE { resource:Q2807 property:P417 ?m . ?m rdf:type ontology:Q1509831 }
Madrid
action filter_type
action find
entity Madrid
relation patron saint
type titles of Mary
SELECT DISTINCT ?m WHERE { resource:Madrid property:patron_saint ?m . ?m rdf:type ontology:titles_of_Mary }
[]
titles of Mary
Q1136827
SYSTEM
Virgin of Almudena
Q1136827
action filter_type
action find
entity Q2807
relation P417
type Q1509831
The name of the patron saint of that administrative territory is the [ANSWER]
SELECT DISTINCT ?m WHERE { resource:Q2807 property:P417 ?m . ?m rdf:type ontology:Q1509831 }
Virgin of Almudena
The name of the patron saint of that administrative territory is the Virgin of Almudena
Virgin of Almudena
action filter_type
action find
entity Madrid
relation patron saint
type titles of Mary
SELECT DISTINCT ?m WHERE { resource:Madrid property:patron_saint ?m . ?m rdf:type ontology:titles_of_Mary }
[]