Simple Question (Direct)
Simple Question
Q16678
P1313
Q12737077
USER
What is the occupation held by Avinyó ?
(Q16678,P1313,c(Q12737077))
action filter_type
action find
entity Q16678
relation P1313
type Q12737077
['Q16678', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q16678 property:P1313 ?d . ?d rdf:type ontology:Q12737077 }
Avinyó
action filter_type
action find
entity Avinyó
relation office held by head of government
type occupation
['Avinyó', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Avinyó property:office_held_by_head_of_government ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q26695169
SYSTEM
mayor of Avinyó
Q26695169
(Q16678,P1313,c(Q12737077))
action filter_type
action find
entity Q16678
relation P1313
type Q12737077
The occupation held by Avinyó is the [ANSWER]
['Q16678', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q16678 property:P1313 ?d . ?d rdf:type ontology:Q12737077 }
mayor of Avinyó
The occupation held by Avinyó is the mayor of Avinyó
mayor of Avinyó
action filter_type
action find
entity Avinyó
relation office held by head of government
type occupation
['Avinyó', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Avinyó property:office_held_by_head_of_government ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16678
P6
Q502895
USER
Which person has Avinyó as its head of government ?
(Q16678,P6,c(Q502895))
action filter_type
action find
entity Q16678
relation P6
type Q502895
['Q16678', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q16678 property:P6 ?z }
Avinyó
action filter_type
action find
entity Avinyó
relation head of government
type common name
['Avinyó', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Avinyó property:head_of_government ?z }
[]
common name
Q14038134
SYSTEM
Eudald Vilaseca i Font
Q14038134
(Q16678,P6,c(Q502895))
action filter_type
action find
entity Q16678
relation P6
type Q502895
[ANSWER] has Avinyó as its head of government
['Q16678', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q16678 property:P6 ?z }
Eudald Vilaseca i Font
Eudald Vilaseca i Font has Avinyó as its head of government
Eudald Vilaseca i Font
action filter_type
action find
entity Avinyó
relation head of government
type common name
['Avinyó', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Avinyó property:head_of_government ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q14038134
P106
Q12737077
USER
What does that person do for a living ?
(Q14038134,P106,c(Q12737077))
action filter_type
action find
entity Q14038134
relation P106
type Q12737077
['Q14038134', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q14038134 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Eudald Vilaseca i Font
action filter_type
action find
entity Eudald Vilaseca i Font
relation occupation
type occupation
['Eudald Vilaseca i Font', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Eudald_Vilaseca_i_Font property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q14038134,P106,c(Q12737077))
action filter_type
action find
entity Q14038134
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q14038134', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q14038134 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
politician
Politician that person does for a living
politician
action filter_type
action find
entity Eudald Vilaseca i Font
relation occupation
type occupation
['Eudald Vilaseca i Font', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Eudald_Vilaseca_i_Font property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P425
Q3769299
USER
Which human behaviour is associated with the field of occupation that one ?
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?o WHERE { resource:Q82955 property:P425 ?o . ?o rdf:type ontology:Q3769299 }
politician
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?o WHERE { resource:politician property:field_of_this_occupation ?o . ?o rdf:type ontology:human_behaviour }
[]
human behaviour
Q7163
SYSTEM
politics
Q7163
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
That [ANSWER] is associated with the field of occupation that one
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?o WHERE { resource:Q82955 property:P425 ?o . ?o rdf:type ontology:Q3769299 }
politics
That politics is associated with the field of occupation that one
politics
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?o WHERE { resource:politician property:field_of_this_occupation ?o . ?o rdf:type ontology:human_behaviour }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16678
P1001
Q12737077
USER
Which occupation presides the jurisdiction over Avinyó ?
(c(Q12737077),P1001,Q16678)
action filter_type
action find_reverse
entity Q16678
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q16678']
SELECT DISTINCT ?v WHERE { ?v property:P1001 resource:Q16678 . ?v rdf:type ontology:Q12737077 }
Avinyó
action filter_type
action find_reverse
entity Avinyó
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Avinyó']
SELECT DISTINCT ?v WHERE { ?v property:applies_to_jurisdiction resource:Avinyó . ?v rdf:type ontology:occupation }
[]
occupation
Q26695169
SYSTEM
mayor of Avinyó
Q26695169
(c(Q12737077),P1001,Q16678)
action filter_type
action find_reverse
entity Q16678
relation P1001
type Q12737077
The [ANSWER] presides the jurisdiction over Avinyó
[{'concept': 'Q12737077'}, 'P1001', 'Q16678']
SELECT DISTINCT ?v WHERE { ?v property:P1001 resource:Q16678 . ?v rdf:type ontology:Q12737077 }
mayor of Avinyó
The mayor of Avinyó presides the jurisdiction over Avinyó
mayor of Avinyó
action filter_type
action find_reverse
entity Avinyó
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Avinyó']
SELECT DISTINCT ?v WHERE { ?v property:applies_to_jurisdiction resource:Avinyó . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16678
P47
Q1048835
USER
Which political territories are adjacent to that one ?
(Q26695169,P47,c(Q1048835))
action filter_type
action find
entity Q16678
relation P47
type Q1048835
['Q26695169', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q16678 property:P47 ?f . ?f rdf:type ontology:Q1048835 }
Avinyó
action filter_type
action find
entity Avinyó
relation shares border with
type political territorial entity
['mayor of Avinyó', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Avinyó property:shares_border_with ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16702 Q16735 Q15541
SYSTEM
Moià, Santa Maria d'Oló, Santa Maria de Merlès
Q16735 Q15541 Q16680 Q16729 Q16728 Q16696 Q16702 Q16677
(Q26695169,P47,c(Q1048835))
action filter_type
action find
entity Q16678
relation P47
type Q1048835
[ANSWERS] are adjacent to that one
['Q26695169', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q16678 property:P47 ?f . ?f rdf:type ontology:Q1048835 }
Santa Maria d'Oló Santa Maria de Merlès Calders Sant Feliu Sasserra Sallent de Llobregat Gaià Moià Artés
Moià, Santa Maria d'Oló and Santa Maria de Merlès are adjacent to that one
Moià Santa Maria d'Oló Santa Maria de Merlès
action filter_type
action find
entity Avinyó
relation shares border with
type political territorial entity
['mayor of Avinyó', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Avinyó property:shares_border_with ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2065231
P47
Q1048835
USER
Do São Raimundo das Mangabeiras have an adjacent border with those ones ?
(Q2065231,P47,Q16702) (Q2065231,P47,Q16735) (Q2065231,P47,Q15541)
action is_in
entity prev_answer
action find
entity Q2065231
relation P47
['Q2065231', 'P47', 'Q16702'] ['Q2065231', 'P47', 'Q16735'] ['Q2065231', 'P47', 'Q15541']
ASK WHERE { VALUES ( ?q ) { ( resource:Q16735 ) ( resource:Q15541 ) ( resource:Q16680 ) } . resource:Q2065231 property:P47 ?q }
São Raimundo das Mangabeiras
action is_in
entity prev_answer
action find
entity São Raimundo das Mangabeiras
relation shares border with
['São Raimundo das Mangabeiras', 'shares border with', 'Moià'] ['São Raimundo das Mangabeiras', 'shares border with', "Santa Maria d'Oló"] ['São Raimundo das Mangabeiras', 'shares border with', 'Santa Maria de Merlès']
ASK WHERE { VALUES ( ?q ) { ( resource:Santa_Maria_d'Oló ) ( resource:Santa_Maria_de_Merlès ) ( resource:Calders ) } . resource:São_Raimundo_das_Mangabeiras property:shares_border_with ?q }
[]
political territorial entity
SYSTEM
NO
(Q2065231,P47,Q16702) (Q2065231,P47,Q16735) (Q2065231,P47,Q15541)
action is_in
entity prev_answer
action find
entity Q2065231
relation P47
[ANSWER]
['Q2065231', 'P47', 'Q16702'] ['Q2065231', 'P47', 'Q16735'] ['Q2065231', 'P47', 'Q15541']
ASK WHERE { VALUES ( ?q ) { ( resource:Q16735 ) ( resource:Q15541 ) ( resource:Q16680 ) } . resource:Q2065231 property:P47 ?q }
No
action is_in
entity prev_answer
action find
entity São Raimundo das Mangabeiras
relation shares border with
['São Raimundo das Mangabeiras', 'shares border with', 'Moià'] ['São Raimundo das Mangabeiras', 'shares border with', "Santa Maria d'Oló"] ['São Raimundo das Mangabeiras', 'shares border with', 'Santa Maria de Merlès']
ASK WHERE { VALUES ( ?q ) { ( resource:Santa_Maria_d'Oló ) ( resource:Santa_Maria_de_Merlès ) ( resource:Calders ) } . resource:São_Raimundo_das_Mangabeiras property:shares_border_with ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2065231
P17
Q15617994
USER
Which administrative territory is that political territory situated in ?
action filter_type
action find
entity Q2065231
relation P17
type Q15617994
SELECT DISTINCT ?m WHERE { resource:Q2065231 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
São Raimundo das Mangabeiras
action filter_type
action find
entity São Raimundo das Mangabeiras
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?m WHERE { resource:São_Raimundo_das_Mangabeiras property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
action filter_type
action find
entity Q2065231
relation P17
type Q15617994
That political territory is situated in [ANSWER]
SELECT DISTINCT ?m WHERE { resource:Q2065231 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Brazil
That political territory is situated in Brazil
Brazil
action filter_type
action find
entity São Raimundo das Mangabeiras
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?m WHERE { resource:São_Raimundo_das_Mangabeiras property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q778
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with around the same number of administrative territories as The Bahamas ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Q778 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?i ) WHERE { ?x property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } }
The Bahamas
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:The_Bahamas property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?i ) WHERE { ?x property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q1048835
[ANSWERS] have tactful political relations with around the same number of administrative territories as The Bahamas
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Q778 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?i ) WHERE { ?x property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have tactful political relations with around the same number of administrative territories as The Bahamas
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:The_Bahamas property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?i ) WHERE { ?x property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4221571
P530
Q1048835
USER
Do Hurskoho have diplomatic associations with those ones ?
(Q4221571,P530,Q35) (Q4221571,P530,Q16) (Q4221571,P530,Q40)
action is_in
entity prev_answer
action find
entity Q4221571
relation P530
['Q4221571', 'P530', 'Q35'] ['Q4221571', 'P530', 'Q16'] ['Q4221571', 'P530', 'Q40']
ASK WHERE { resource:Q4221571 property:P530 ?h . VALUES ( ?h ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Hurskoho
action is_in
entity prev_answer
action find
entity Hurskoho
relation diplomatic relation
['Hurskoho', 'diplomatic relation', 'Denmark'] ['Hurskoho', 'diplomatic relation', 'Canada'] ['Hurskoho', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Hurskoho property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
political territorial entity
SYSTEM
NO
(Q4221571,P530,Q35) (Q4221571,P530,Q16) (Q4221571,P530,Q40)
action is_in
entity prev_answer
action find
entity Q4221571
relation P530
[ANSWER]
['Q4221571', 'P530', 'Q35'] ['Q4221571', 'P530', 'Q16'] ['Q4221571', 'P530', 'Q40']
ASK WHERE { resource:Q4221571 property:P530 ?h . VALUES ( ?h ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Hurskoho
relation diplomatic relation
['Hurskoho', 'diplomatic relation', 'Denmark'] ['Hurskoho', 'diplomatic relation', 'Canada'] ['Hurskoho', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Hurskoho property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]