Simple Question (Direct)
Simple Question
Q1908460
P19
Q13220204
USER
Which administrative country subdivision was Theo Blankenaauw born at ?
(Q1908460,P19,c(Q13220204))
action filter_type
action find
entity Q1908460
relation P19
type Q13220204
['Q1908460', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?a WHERE { resource:Q1908460 property:P19 ?a . ?a rdf:type ontology:Q13220204 }
Theo Blankenaauw
action filter_type
action find
entity Theo Blankenaauw
relation place of birth
type second-level administrative country subdivision
['Theo Blankenaauw', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?a WHERE { resource:Theo_Blankenaauw property:place_of_birth ?a . ?a rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q9800
SYSTEM
Gennep
Q9800
(Q1908460,P19,c(Q13220204))
action filter_type
action find
entity Q1908460
relation P19
type Q13220204
Theo Blankenaauw at born in [ANSWER]
['Q1908460', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?a WHERE { resource:Q1908460 property:P19 ?a . ?a rdf:type ontology:Q13220204 }
Gennep
Theo Blankenaauw at born in Gennep
Gennep
action filter_type
action find
entity Theo Blankenaauw
relation place of birth
type second-level administrative country subdivision
['Theo Blankenaauw', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?a WHERE { resource:Theo_Blankenaauw property:place_of_birth ?a . ?a rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9800
P1383
Q56061
USER
Which administrative territory is in that administrative country subdivision ?
(Q9800,P1383,c(Q56061))
action filter_type
action find
entity Q9800
relation P1383
type Q56061
['Q9800', 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q9800 property:P1383 ?w . ?w rdf:type ontology:Q56061 }
Gennep
action filter_type
action find
entity Gennep
relation contains settlement
type administrative territorial entity
['Gennep', 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Gennep property:contains_settlement ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q22933626
SYSTEM
Gennep
Q22933626
(Q9800,P1383,c(Q56061))
action filter_type
action find
entity Q9800
relation P1383
type Q56061
[ANSWER] is in that administrative country subdivision
['Q9800', 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q9800 property:P1383 ?w . ?w rdf:type ontology:Q56061 }
Gennep
Gennep is in that administrative country subdivision
Gennep
action filter_type
action find
entity Gennep
relation contains settlement
type administrative territorial entity
['Gennep', 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Gennep property:contains_settlement ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9800
P47
Q13220204
USER
Who share the border with Gennep ?
(Q9800,P47,c(Q13220204))
action filter_type
action find
entity Q9800
relation P47
type Q13220204
['Q9800', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q13220204 . resource:Q9800 property:P47 ?v }
Gennep
action filter_type
action find
entity Gennep
relation shares border with
type second-level administrative country subdivision
['Gennep', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:second-level_administrative_country_subdivision . resource:Gennep property:shares_border_with ?v }
[]
second-level administrative country subdivision
Q9819 Q9804 Q9827
SYSTEM
Boxmeer, Bergen, Cuijk
Q9827 Q9804 Q9791 Q9819
(Q9800,P47,c(Q13220204))
action filter_type
action find
entity Q9800
relation P47
type Q13220204
[ANSWERS] share the border with Gennep
['Q9800', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q13220204 . resource:Q9800 property:P47 ?v }
Cuijk Bergen Mook en Middelaar Boxmeer
Boxmeer, Bergen and Cuijk share the border with Gennep
Boxmeer Bergen Cuijk
action filter_type
action find
entity Gennep
relation shares border with
type second-level administrative country subdivision
['Gennep', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:second-level_administrative_country_subdivision . resource:Gennep property:shares_border_with ?v }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9804
P20
Q502895
USER
Which person has that administrative country subdivision as the area of death ?
(c(Q502895),P20,Q9804)
action filter_type
action find_reverse
entity Q9804
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q9804']
SELECT DISTINCT ?r WHERE { ?r property:P20 resource:Q9804 . ?r rdf:type ontology:Q502895 }
Bergen
action filter_type
action find_reverse
entity Bergen
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Bergen']
SELECT DISTINCT ?r WHERE { ?r property:place_of_death resource:Bergen . ?r rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q9819
SYSTEM
Did you mean Boxmeer ?
Q9819 Q9804 Q9827
(c(Q502895),P20,Q9819) (c(Q502895),P20,Q9804) (c(Q502895),P20,Q9827)
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q9819'] [{'concept': 'Q502895'}, 'P20', 'Q9804'] [{'concept': 'Q502895'}, 'P20', 'Q9827']
SELECT DISTINCT ?r WHERE { ?r property:P20 resource:Q9804 . ?r rdf:type ontology:Q502895 }
Boxmeer Bergen Cuijk
Did you mean Boxmeer ?
Boxmeer
[{'concept': 'common name'}, 'place of death', 'Boxmeer'] [{'concept': 'common name'}, 'place of death', 'Bergen'] [{'concept': 'common name'}, 'place of death', 'Cuijk']
SELECT DISTINCT ?r WHERE { ?r property:place_of_death resource:Bergen . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Bergen. Could you tell me the answer for that?
(c(Q502895),P20,Q9804)
Q9804
[{'concept': 'Q502895'}, 'P20', 'Q9804']
[{'concept': 'common name'}, 'place of death', 'Bergen']
[]
Q2864683
SYSTEM
Edgar Fernhout
Q2864683
(c(Q502895),P20,Q9804)
action filter_type
action find_reverse
entity Q9804
relation P20
type Q502895
[ANSWER] has that administrative country subdivision as the area of death
[{'concept': 'Q502895'}, 'P20', 'Q9804']
SELECT DISTINCT ?r WHERE { ?r property:P20 resource:Q9804 . ?r rdf:type ontology:Q502895 }
Edgar Fernhout
Edgar Fernhout has that administrative country subdivision as the area of death
Edgar Fernhout
action filter_type
action find_reverse
entity Bergen
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Bergen']
SELECT DISTINCT ?r WHERE { ?r property:place_of_death resource:Bergen . ?r rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q2864683 Q4604652 Q2007477
P40
Q502895
USER
Does that person have Alda and Rik Fernhout as an offspring ?
(Q2864683,P40,Q4604652) (Q2864683,P40,Q2007477)
action is_in
entity Q2864683
action intersection
action find_reverse
entity Q4604652
relation P40
action find_reverse
entity Q2007477
relation P40
['Q2864683', 'P40', 'Q4604652'] ['Q2864683', 'P40', 'Q2007477']
ASK WHERE { resource:Q2864683 property:P40 resource:Q4604652 . resource:Q2864683 property:P40 resource:Q2007477 }
Edgar Fernhout Alda Rik Fernhout
action is_in
entity Edgar Fernhout
action intersection
action find_reverse
entity Alda
relation child
action find_reverse
entity Rik Fernhout
relation child
['Edgar Fernhout', 'child', 'Alda'] ['Edgar Fernhout', 'child', 'Rik Fernhout']
ASK WHERE { resource:Edgar_Fernhout property:child resource:Alda . resource:Edgar_Fernhout property:child resource:Rik_Fernhout }
[]
common name
SYSTEM
NO and YES respectively
(Q2864683,P40,Q4604652) (Q2864683,P40,Q2007477)
action is_in
entity Q2864683
action intersection
action find_reverse
entity Q4604652
relation P40
action find_reverse
entity Q2007477
relation P40
[ANSWER]
['Q2864683', 'P40', 'Q4604652'] ['Q2864683', 'P40', 'Q2007477']
ASK WHERE { resource:Q2864683 property:P40 resource:Q4604652 . resource:Q2864683 property:P40 resource:Q2007477 }
NO and YES respectively
action is_in
entity Edgar Fernhout
action intersection
action find_reverse
entity Alda
relation child
action find_reverse
entity Rik Fernhout
relation child
['Edgar Fernhout', 'child', 'Alda'] ['Edgar Fernhout', 'child', 'Rik Fernhout']
ASK WHERE { resource:Edgar_Fernhout property:child resource:Alda . resource:Edgar_Fernhout property:child resource:Rik_Fernhout }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q9827 Q9791 Q2324811
P47
Q13220204
USER
Does Cuijk have an adjacent border with Mook en Middelaar and San Onofre, Sucre ?
(Q9827,P47,Q9791) (Q9827,P47,Q2324811)
action is_in
entity Q9827
action intersection
action find_reverse
entity Q9791
relation P47
action find_reverse
entity Q2324811
relation P47
['Q9827', 'P47', 'Q9791'] ['Q9827', 'P47', 'Q2324811']
ASK WHERE { resource:Q9827 property:P47 resource:Q9791 . resource:Q9827 property:P47 resource:Q2324811 }
Cuijk Mook en Middelaar San Onofre, Sucre
action is_in
entity Cuijk
action intersection
action find_reverse
entity Mook en Middelaar
relation shares border with
action find_reverse
entity San Onofre, Sucre
relation shares border with
['Cuijk', 'shares border with', 'Mook en Middelaar'] ['Cuijk', 'shares border with', 'San Onofre, Sucre']
ASK WHERE { resource:Cuijk property:shares_border_with resource:Mook_en_Middelaar . resource:Cuijk property:shares_border_with resource:San_Onofre,_Sucre }
[]
second-level administrative country subdivision
SYSTEM
YES and NO respectively
(Q9827,P47,Q9791) (Q9827,P47,Q2324811)
action is_in
entity Q9827
action intersection
action find_reverse
entity Q9791
relation P47
action find_reverse
entity Q2324811
relation P47
[ANSWER]
['Q9827', 'P47', 'Q9791'] ['Q9827', 'P47', 'Q2324811']
ASK WHERE { resource:Q9827 property:P47 resource:Q9791 . resource:Q9827 property:P47 resource:Q2324811 }
YES and NO respectively
action is_in
entity Cuijk
action intersection
action find_reverse
entity Mook en Middelaar
relation shares border with
action find_reverse
entity San Onofre, Sucre
relation shares border with
['Cuijk', 'shares border with', 'Mook en Middelaar'] ['Cuijk', 'shares border with', 'San Onofre, Sucre']
ASK WHERE { resource:Cuijk property:shares_border_with resource:Mook_en_Middelaar . resource:Cuijk property:shares_border_with resource:San_Onofre,_Sucre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q9800
P47
Q13220204 Q15617994
USER
How many administrative country subdivisions and administrative territories have an adjacent border with Gennep ?
(c(Q13220204),P47,Q9800) (c(Q15617994),P47,Q9800)
action count
action union
action filter_type
action find_reverse
entity Q9800
relation P47
type Q13220204
action filter_type
action find_reverse
entity Q9800
relation P47
type Q15617994
[{'concept': 'Q13220204'}, 'P47', 'Q9800'] [{'concept': 'Q15617994'}, 'P47', 'Q9800']
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f rdf:type ?b . VALUES ( ?b ) { ( ontology:Q15617994 ) ( ontology:Q13220204 ) } }
Gennep
action count
action union
action filter_type
action find_reverse
entity Gennep
relation shares border with
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Gennep
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Gennep'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Gennep']
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f rdf:type ?b . VALUES ( ?b ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } }
[]
second-level administrative country subdivision designation for an administrative territorial entity
SYSTEM
5 administrative country subdivisions and 2 administrative territories
Q16006 Q243266 Q9791 Q9827 Q9819 Q9804 Q18088965
(c(Q13220204),P47,Q9800) (c(Q15617994),P47,Q9800)
action count
action union
action filter_type
action find_reverse
entity Q9800
relation P47
type Q13220204
action filter_type
action find_reverse
entity Q9800
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q13220204'}, 'P47', 'Q9800'] [{'concept': 'Q15617994'}, 'P47', 'Q9800']
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f rdf:type ?b . VALUES ( ?b ) { ( ontology:Q15617994 ) ( ontology:Q13220204 ) } }
Goch Kranenburg Mook en Middelaar Cuijk Boxmeer Bergen Berg en Dal
5 administrative country subdivisions and 2 administrative territories
action count
action union
action filter_type
action find_reverse
entity Gennep
relation shares border with
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Gennep
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Gennep'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Gennep']
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f rdf:type ?b . VALUES ( ?b ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3995 Q9804
P47
Q13220204
USER
Which administrative country subdivisions are next to the border of Bergen or Basque Country ?
OR((c(Q13220204),P47,Q9804), (c(Q13220204),P47,Q3995))
action filter_type
action union
action find_reverse
entity Q9804
relation P47
action find_reverse
entity Q3995
relation P47
type Q13220204
{'OR': [[{'concept': 'Q13220204'}, 'P47', 'Q9804'], [{'concept': 'Q13220204'}, 'P47', 'Q3995']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q13220204 . { VALUES ( ?w ) { ( resource:Q9804 ) ( resource:Q3995 ) } . ?e property:P47 ?w } }
Basque Country Bergen
action filter_type
action union
action find_reverse
entity Bergen
relation shares border with
action find_reverse
entity Basque Country
relation shares border with
type second-level administrative country subdivision
{'OR': [[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Bergen'], [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Basque Country']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:second-level_administrative_country_subdivision . { VALUES ( ?w ) { ( resource:Bergen ) ( resource:Basque_Country ) } . ?e property:shares_border_with ?w } }
[]
second-level administrative country subdivision
Q3946 Q9800 Q9775 Q9819 Q9777 Q9797
SYSTEM
Cantabria, Gennep, Venray, Boxmeer, Venlo, Horst aan de Maas
Q3946 Q9800 Q9775 Q9819 Q9777 Q9797
OR((c(Q13220204),P47,Q9804), (c(Q13220204),P47,Q3995))
action filter_type
action union
action find_reverse
entity Q9804
relation P47
action find_reverse
entity Q3995
relation P47
type Q13220204
[ANSWERS] are next to the border of Bergen or Basque Country
{'OR': [[{'concept': 'Q13220204'}, 'P47', 'Q9804'], [{'concept': 'Q13220204'}, 'P47', 'Q3995']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q13220204 . { VALUES ( ?w ) { ( resource:Q9804 ) ( resource:Q3995 ) } . ?e property:P47 ?w } }
Cantabria Gennep Venray Boxmeer Venlo Horst aan de Maas
Cantabria, Gennep, Venray, Boxmeer, Venlo and Horst aan de Maas are next to the border of Bergen or Basque Country
Cantabria Gennep Venray Boxmeer Venlo Horst aan de Maas
action filter_type
action union
action find_reverse
entity Bergen
relation shares border with
action find_reverse
entity Basque Country
relation shares border with
type second-level administrative country subdivision
{'OR': [[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Bergen'], [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Basque Country']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:second-level_administrative_country_subdivision . { VALUES ( ?w ) { ( resource:Bergen ) ( resource:Basque_Country ) } . ?e property:shares_border_with ?w } }
[]