Simple Question (Direct)
Simple Question
Q15969258
P20
Q56061
USER
Which administrative territory is the place of death of Antoine Pauwels ?
(Q15969258,P20,c(Q56061))
action filter_type
action find
entity Q15969258
relation P20
type Q56061
['Q15969258', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q15969258 property:P20 ?n . ?n rdf:type ontology:Q56061 }
Antoine Pauwels
action filter_type
action find
entity Antoine Pauwels
relation place of death
type administrative territorial entity
['Antoine Pauwels', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Antoine_Pauwels property:place_of_death ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q15969258,P20,c(Q56061))
action filter_type
action find
entity Q15969258
relation P20
type Q56061
[ANSWER] is the place of death of Antoine Pauwels
['Q15969258', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q15969258 property:P20 ?n . ?n rdf:type ontology:Q56061 }
Paris
Paris is the place of death of Antoine Pauwels
Paris
action filter_type
action find
entity Antoine Pauwels
relation place of death
type administrative territorial entity
['Antoine Pauwels', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Antoine_Pauwels property:place_of_death ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15969258
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q90,P19,c(Q56061))
action filter_type
action find
entity Q15969258
relation P19
type Q56061
['Q90', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q15969258 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Antoine Pauwels
action filter_type
action find
entity Antoine Pauwels
relation place of birth
type administrative territorial entity
['Paris', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Antoine_Pauwels property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q90,P19,c(Q56061))
action filter_type
action find
entity Q15969258
relation P19
type Q56061
That person was born in [ANSWER]
['Q90', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q15969258 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Paris
That person was born in Paris
Paris
action filter_type
action find
entity Antoine Pauwels
relation place of birth
type administrative territorial entity
['Paris', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Antoine_Pauwels property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1394778
P206
Q355304 Q15324 Q56061
USER
Which administrative territories are located next to more number of watercourses and bodies of water than Falmey ?
(c(Q56061),P206,c(Q355304)|c(Q15324))
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q1394778
relation P206
type Q355304
type Q15324
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { VALUES ( ?v ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } . ?d rdf:type ?v } . resource:Q1394778 property:P206 ?d } } . FILTER ( ?p > ?c ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?m WHERE { ?r rdf:type ?z . VALUES ( ?z ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } } GROUP BY ?m } }
Falmey
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Falmey
relation located next to body of water
type watercourse
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { VALUES ( ?v ) { ( ontology:watercourse ) ( ontology:body_of_water ) } . ?d rdf:type ?v } . resource:Falmey property:located_next_to_body_of_water ?d } } . FILTER ( ?p > ?c ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?m WHERE { ?r rdf:type ?z . VALUES ( ?z ) { ( ontology:watercourse ) ( ontology:body_of_water ) } } GROUP BY ?m } }
[]
watercourse body of water administrative territorial entity
Q1741 Q60 Q3033
SYSTEM
Vienna, New York City, Göttingen
Q3033 Q1741 Q2103 Q60 Q100
(c(Q56061),P206,c(Q355304)|c(Q15324))
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q1394778
relation P206
type Q355304
type Q15324
[ANSWERS] are located next to more number of watercourses and bodies of water than Falmey
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { VALUES ( ?v ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } . ?d rdf:type ?v } . resource:Q1394778 property:P206 ?d } } . FILTER ( ?p > ?c ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?m WHERE { ?r rdf:type ?z . VALUES ( ?z ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } } GROUP BY ?m } }
Göttingen Vienna Bochum New York City Boston
Vienna, New York City and Göttingen are located next to more number of watercourses and bodies of water than Falmey
Vienna New York City Göttingen
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Falmey
relation located next to body of water
type watercourse
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { VALUES ( ?v ) { ( ontology:watercourse ) ( ontology:body_of_water ) } . ?d rdf:type ?v } . resource:Falmey property:located_next_to_body_of_water ?d } } . FILTER ( ?p > ?c ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?m WHERE { ?r rdf:type ?z . VALUES ( ?z ) { ( ontology:watercourse ) ( ontology:body_of_water ) } } GROUP BY ?m } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2284683
P206
Q355304 Q15324 Q56061
USER
And how about Mobridge?
(c(Q56061),P206,c(Q355304)|c(Q15324))
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q2284683
relation P206
type Q355304
type Q15324
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) ?x WHERE { { ?x property:P206 ?s . ?x rdf:type ontology:Q56061 . ?s rdf:type ontology:Q355304 } UNION { ?x property:P206 ?s . ?x rdf:type ontology:Q56061 . ?s rdf:type ontology:Q15324 } } GROUP BY ?x } . FILTER ( ?a > ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q2284683 property:P206 ?v . { { ?v rdf:type ontology:Q355304 } UNION { ?v rdf:type ontology:Q15324 } } } } }
Mobridge
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Mobridge
relation located next to body of water
type watercourse
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) ?x WHERE { { ?x property:located_next_to_body_of_water ?s . ?x rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:watercourse } UNION { ?x property:located_next_to_body_of_water ?s . ?x rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:body_of_water } } GROUP BY ?x } . FILTER ( ?a > ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Mobridge property:located_next_to_body_of_water ?v . { { ?v rdf:type ontology:watercourse } UNION { ?v rdf:type ontology:body_of_water } } } } }
[]
watercourse body of water administrative territorial entity
Q216 Q64 Q647
SYSTEM
Vilnius, Berlin, Rennes
Q1718 Q305067 Q898 Q3711 Q1395576 Q1715 Q895123 Q253741 Q934511 Q387502 Q1757 Q1022 Q251091 Q47048 Q34820 Q11901685 Q103255 Q2599767 Q379531 Q793407 Q925506 Q2861 Q13403152 Q1963 Q37133 Q1842 Q740066 Q2598092 Q3630 Q988658 Q3037 Q3033 Q1563 Q1741 Q987797 Q9536 Q10707890 Q2090 Q2229853 Q2103 Q36281 Q831527 Q60 Q23564 Q3828 Q252466 Q18419 Q227064 Q244327 Q3825 Q10690 Q14945 Q1726 Q503640 Q569804 Q1729 Q64 Q61 Q1567437 Q1591499 Q50960 Q3640 Q1394778 Q647 Q3012 Q140147 Q990130 Q79848 Q585 Q820024 Q220 Q1040 Q100 Q11873187 Q1025353 Q216 Q615732 Q36168 Q4190
(c(Q56061),P206,c(Q355304)|c(Q15324))
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q2284683
relation P206
type Q355304
type Q15324
[ANSWERS]
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) ?x WHERE { { ?x property:P206 ?s . ?x rdf:type ontology:Q56061 . ?s rdf:type ontology:Q355304 } UNION { ?x property:P206 ?s . ?x rdf:type ontology:Q56061 . ?s rdf:type ontology:Q15324 } } GROUP BY ?x } . FILTER ( ?a > ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q2284683 property:P206 ?v . { { ?v rdf:type ontology:Q355304 } UNION { ?v rdf:type ontology:Q15324 } } } } }
Düsseldorf Gniew Omsk Belgrade Nussdorf Hanover Boumba Grinzing Papendrecht Świecie Helsinki Stuttgart Athy Oulu Santo Domingo Virkkula Alatyr Yatakala Heiligenstadt Ayourou Brok Rostock Loenen aan de Vecht Khartoum Mariupol Luxembourg Kinderdijk Shorne Jakarta Połaniec Kathmandu Göttingen Havana Vienna Leixlip Bad Doberan Olhava Nuremberg Velsen-Noord Bochum Roseau Djurgården New York City Podgorica Dessau-Roßlau Treuchtlingen Brooklyn Zoutelande Gorinchem Libreville Cardiff Merseburg Munich Gunzenhausen Wyszogród Erfurt Berlin Washington, D.C. Hadersdorf-Weidlingau Havelse Demmin Ankara Falmey Rennes Ulm Brest Hook of Holland Southampton Oslo Kupiškis Rome Karlsruhe Boston Kuivaniemi Cadzand-Bad Vilnius Breukelen Bridgetown Passau
Vilnius Berlin Rennes
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Mobridge
relation located next to body of water
type watercourse
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) ?x WHERE { { ?x property:located_next_to_body_of_water ?s . ?x rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:watercourse } UNION { ?x property:located_next_to_body_of_water ?s . ?x rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:body_of_water } } GROUP BY ?x } . FILTER ( ?a > ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Mobridge property:located_next_to_body_of_water ?v . { { ?v rdf:type ontology:watercourse } UNION { ?v rdf:type ontology:body_of_water } } } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19018917 Q1394778
P17
Q15617994
USER
Which administrative territories are Falmey or Doelenstraat located in ?
OR((Q1394778,P17,c(Q15617994)), (Q19018917,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1394778
relation P17
action find
entity Q19018917
relation P17
type Q15617994
{'OR': [['Q1394778', 'P17', {'concept': 'Q15617994'}], ['Q19018917', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { VALUES ( ?h ) { ( resource:Q1394778 ) ( resource:Q19018917 ) } . ?h property:P17 ?t } }
Doelenstraat Falmey
action filter_type
action union
action find
entity Falmey
relation country
action find
entity Doelenstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Falmey', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Doelenstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?h ) { ( resource:Falmey ) ( resource:Doelenstraat ) } . ?h property:country ?t } }
[]
designation for an administrative territorial entity
Q1032 Q55
SYSTEM
Niger, Netherlands
Q1032 Q55
OR((Q1394778,P17,c(Q15617994)), (Q19018917,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1394778
relation P17
action find
entity Q19018917
relation P17
type Q15617994
Falmey or Doelenstraat are located in [ANSWERS]
{'OR': [['Q1394778', 'P17', {'concept': 'Q15617994'}], ['Q19018917', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { VALUES ( ?h ) { ( resource:Q1394778 ) ( resource:Q19018917 ) } . ?h property:P17 ?t } }
Niger Netherlands
Falmey or Doelenstraat are located in Niger and Netherlands
Niger Netherlands
action filter_type
action union
action find
entity Falmey
relation country
action find
entity Doelenstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Falmey', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Doelenstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?h ) { ( resource:Falmey ) ( resource:Doelenstraat ) } . ?h property:country ?t } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q15617994 Q56061
USER
How many administrative territories and administrative territories are next to the border of that administrative territory ?
(c(Q15617994),P47,Q1032) (c(Q56061),P47,Q1032) (c(Q15617994),P47,Q1032) (c(Q56061),P47,Q1032) (c(Q15617994),P47,Q55) (c(Q56061),P47,Q55)
[{'concept': 'Q15617994'}, 'P47', 'Q1032'] [{'concept': 'Q56061'}, 'P47', 'Q1032'] [{'concept': 'Q15617994'}, 'P47', 'Q1032'] [{'concept': 'Q56061'}, 'P47', 'Q1032'] [{'concept': 'Q15617994'}, 'P47', 'Q55'] [{'concept': 'Q56061'}, 'P47', 'Q55']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P47 resource:Q632796 } UNION { ?y property:P47 resource:Q632796 } UNION { ?z property:P47 resource:Q632796 } UNION { ?y property:P47 resource:Q632796 } UNION { ?z property:P47 resource:Q22442862 } UNION { ?y property:P47 resource:Q22442862 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Netherlands'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Netherlands']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Niger } UNION { ?y property:shares_border_with resource:Niger } UNION { ?z property:shares_border_with resource:Niger } UNION { ?y property:shares_border_with resource:Niger } UNION { ?z property:shares_border_with resource:Netherlands } UNION { ?y property:shares_border_with resource:Netherlands } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
designation for an administrative territorial entity administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q1032
SYSTEM
Did you mean Niger ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P47 resource:Q632796 } UNION { ?y property:P47 resource:Q632796 } UNION { ?z property:P47 resource:Q632796 } UNION { ?y property:P47 resource:Q632796 } UNION { ?z property:P47 resource:Q22442862 } UNION { ?y property:P47 resource:Q22442862 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
Did you mean Niger ?
Niger
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Niger } UNION { ?y property:shares_border_with resource:Niger } UNION { ?z property:shares_border_with resource:Niger } UNION { ?y property:shares_border_with resource:Niger } UNION { ?z property:shares_border_with resource:Netherlands } UNION { ?y property:shares_border_with resource:Netherlands } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q15617994),P47,Q1032) (c(Q56061),P47,Q1032) (c(Q15617994),P47,Q1032) (c(Q56061),P47,Q1032) (c(Q15617994),P47,Q55) (c(Q56061),P47,Q55)
[{'concept': 'Q15617994'}, 'P47', 'Q1032'] [{'concept': 'Q56061'}, 'P47', 'Q1032'] [{'concept': 'Q15617994'}, 'P47', 'Q1032'] [{'concept': 'Q56061'}, 'P47', 'Q1032'] [{'concept': 'Q15617994'}, 'P47', 'Q55'] [{'concept': 'Q56061'}, 'P47', 'Q55']
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Netherlands'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Netherlands']
[]
SYSTEM
8
Q1033 Q262 Q965 Q1016 Q912 Q657 Q962 Q7172
(c(Q15617994),P47,Q1032) (c(Q56061),P47,Q1032) (c(Q15617994),P47,Q1032) (c(Q56061),P47,Q1032) (c(Q15617994),P47,Q55) (c(Q56061),P47,Q55)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q1032'] [{'concept': 'Q56061'}, 'P47', 'Q1032'] [{'concept': 'Q15617994'}, 'P47', 'Q1032'] [{'concept': 'Q56061'}, 'P47', 'Q1032'] [{'concept': 'Q15617994'}, 'P47', 'Q55'] [{'concept': 'Q56061'}, 'P47', 'Q55']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P47 resource:Q632796 } UNION { ?y property:P47 resource:Q632796 } UNION { ?z property:P47 resource:Q632796 } UNION { ?y property:P47 resource:Q632796 } UNION { ?z property:P47 resource:Q22442862 } UNION { ?y property:P47 resource:Q22442862 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
Nigeria Algeria Burkina Faso Libya Mali Chad Benin Arab League
8
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Niger'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Netherlands'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Netherlands']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Niger } UNION { ?y property:shares_border_with resource:Niger } UNION { ?z property:shares_border_with resource:Niger } UNION { ?y property:shares_border_with resource:Niger } UNION { ?z property:shares_border_with resource:Netherlands } UNION { ?y property:shares_border_with resource:Netherlands } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q647
P127
Q483110
USER
Which stadium belongs to Rennes ?
(c(Q483110),P127,Q647)
action filter_type
action find_reverse
entity Q647
relation P127
type Q483110
[{'concept': 'Q483110'}, 'P127', 'Q647']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q483110 . ?h property:P127 resource:Q647 }
Rennes
action filter_type
action find_reverse
entity Rennes
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Rennes']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:stadium . ?h property:owned_by resource:Rennes }
[]
stadium
Q1121760
SYSTEM
Roazhon Park
Q1121760
(c(Q483110),P127,Q647)
action filter_type
action find_reverse
entity Q647
relation P127
type Q483110
[ANSWER] belongs to Rennes
[{'concept': 'Q483110'}, 'P127', 'Q647']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q483110 . ?h property:P127 resource:Q647 }
Roazhon Park
Roazhon Park belongs to Rennes
Roazhon Park
action filter_type
action find_reverse
entity Rennes
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Rennes']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:stadium . ?h property:owned_by resource:Rennes }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q647
P36
Q20667921
USER
Which french administrative divisions consists of Rennes as their capital ?
(c(Q20667921),P36,Q647)
action filter_type
action find_reverse
entity Q647
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q647']
SELECT DISTINCT ?j WHERE { ?j property:P36 resource:Q647 . ?j rdf:type ontology:Q20667921 }
Rennes
action filter_type
action find_reverse
entity Rennes
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Rennes']
SELECT DISTINCT ?j WHERE { ?j property:capital resource:Rennes . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q12130 Q475561 Q17623073
SYSTEM
Brittany, canton of Rennes-Nord, canton of Rennes-6
Q475561 Q17623073 Q1726902 Q1726912 Q1726913 Q673822 Q1726911 Q17623071 Q1512839 Q17623059 Q1726898 Q304154 Q17623066 Q1726896 Q18413905 Q17623063 Q12130 Q1726900
(c(Q20667921),P36,Q647)
action filter_type
action find_reverse
entity Q647
relation P36
type Q20667921
[ANSWERS] consist of Rennes as their capital
[{'concept': 'Q20667921'}, 'P36', 'Q647']
SELECT DISTINCT ?j WHERE { ?j property:P36 resource:Q647 . ?j rdf:type ontology:Q20667921 }
canton of Rennes-Nord canton of Rennes-6 canton of Rennes-Nord-Est canton of Rennes-Sud-Est canton of Rennes-Sud-Ouest canton of Rennes-Centre-Sud canton of Rennes-Nord-Ouest canton of Rennes-5 canton of Rennes-le-Blosne canton of Rennes-2 canton of Rennes-Centre canton of Rennes-Centre-Ouest canton of Rennes-4 canton of Rennes-Bréquigny canton of Rennes-1 canton of Rennes-3 Brittany canton of Rennes-Est
Brittany, canton of Rennes-Nord and canton of Rennes-6 consist of Rennes as their capital
Brittany canton of Rennes-Nord canton of Rennes-6
action filter_type
action find_reverse
entity Rennes
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Rennes']
SELECT DISTINCT ?j WHERE { ?j property:capital resource:Rennes . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17623073
P1376
Q56061
USER
Which administrative territory is center of administration for that french administrative division ?
(c(Q56061),P1376,Q17623073)
action filter_type
action find_reverse
entity Q17623073
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q17623073']
SELECT DISTINCT ?l WHERE { ?l property:P1376 resource:Q17623073 . ?l rdf:type ontology:Q56061 }
canton of Rennes-6
action filter_type
action find_reverse
entity canton of Rennes-6
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'canton of Rennes-6']
SELECT DISTINCT ?l WHERE { ?l property:capital_of resource:canton_of_Rennes-6 . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q475561
SYSTEM
Did you mean canton of Rennes-Nord ?
Q12130 Q475561 Q17623073
(c(Q56061),P1376,Q12130) (c(Q56061),P1376,Q475561) (c(Q56061),P1376,Q17623073)
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q12130'] [{'concept': 'Q56061'}, 'P1376', 'Q475561'] [{'concept': 'Q56061'}, 'P1376', 'Q17623073']
SELECT DISTINCT ?l WHERE { ?l property:P1376 resource:Q17623073 . ?l rdf:type ontology:Q56061 }
Brittany canton of Rennes-Nord canton of Rennes-6
Did you mean canton of Rennes-Nord ?
canton of Rennes-Nord
[{'concept': 'administrative territorial entity'}, 'capital of', 'Brittany'] [{'concept': 'administrative territorial entity'}, 'capital of', 'canton of Rennes-Nord'] [{'concept': 'administrative territorial entity'}, 'capital of', 'canton of Rennes-6']
SELECT DISTINCT ?l WHERE { ?l property:capital_of resource:canton_of_Rennes-6 . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant canton of Rennes-6. Could you tell me the answer for that?
(c(Q56061),P1376,Q17623073)
Q17623073
[{'concept': 'Q56061'}, 'P1376', 'Q17623073']
[{'concept': 'administrative territorial entity'}, 'capital of', 'canton of Rennes-6']
[]
Q647
SYSTEM
Rennes
Q647
(c(Q56061),P1376,Q17623073)
action filter_type
action find_reverse
entity Q17623073
relation P1376
type Q56061
[ANSWER] is center of administration for that french administrative division
[{'concept': 'Q56061'}, 'P1376', 'Q17623073']
SELECT DISTINCT ?l WHERE { ?l property:P1376 resource:Q17623073 . ?l rdf:type ontology:Q56061 }
Rennes
Rennes is center of administration for that french administrative division
Rennes
action filter_type
action find_reverse
entity canton of Rennes-6
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'canton of Rennes-6']
SELECT DISTINCT ?l WHERE { ?l property:capital_of resource:canton_of_Rennes-6 . ?l rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q212444 Q647
P47
Q20667921
USER
Which french administrative divisions share the border with Rennes or Saint-Claude ?
OR((Q647,P47,c(Q20667921)), (Q212444,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q647
relation P47
action find
entity Q212444
relation P47
type Q20667921
{'OR': [['Q647', 'P47', {'concept': 'Q20667921'}], ['Q212444', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q20667921 . { ?q property:P47 ?m . VALUES ( ?q ) { ( resource:Q647 ) ( resource:Q212444 ) } } }
Saint-Claude Rennes
action filter_type
action union
action find
entity Rennes
relation shares border with
action find
entity Saint-Claude
relation shares border with
type type of french administrative division
{'OR': [['Rennes', 'shares border with', {'concept': 'type of french administrative division'}], ['Saint-Claude', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:type_of_french_administrative_division . { ?q property:shares_border_with ?m . VALUES ( ?q ) { ( resource:Rennes ) ( resource:Saint-Claude ) } } }
[]
type of french administrative division
Q230365 Q1160023 Q676062 Q668981 Q220159 Q227795 Q819093 Q930538 Q819096 Q1021786
SYSTEM
Some of them are Montgermont, Le Rheu, La Rixouse, Ponthoux, Saint-Grégoire, Cesson-Sévigné, Coiserette, Vezin-le-Coquet, Cuttura, Noyal-Châtillon-sur-Seiche
Q220159 Q227795 Q614006 Q1021786 Q230365 Q633861 Q970366 Q845611 Q636896 Q750884 Q840470 Q216863 Q819096 Q535371 Q819093 Q668981 Q1160023 Q676062 Q790977 Q930538 Q678865 Q281517 Q634426
OR((Q647,P47,c(Q20667921)), (Q212444,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q647
relation P47
action find
entity Q212444
relation P47
type Q20667921
[ANSWERS] share the border with Rennes or Saint-Claude
{'OR': [['Q647', 'P47', {'concept': 'Q20667921'}], ['Q212444', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q20667921 . { ?q property:P47 ?m . VALUES ( ?q ) { ( resource:Q647 ) ( resource:Q212444 ) } } }
Saint-Grégoire Cesson-Sévigné Chassal Noyal-Châtillon-sur-Seiche Montgermont Betton Pacé Larrivoire Lamoura Villard-Saint-Sauveur Lavans-lès-Saint-Claude Chantepie Cuttura Saint-Jacques-de-la-Lande Coiserette Ponthoux Le Rheu La Rixouse Avignon-lès-Saint-Claude Vezin-le-Coquet Leschères Septmoncel Longchaumois
Montgermont, Le Rheu, La Rixouse, Ponthoux, Saint-Grégoire, Cesson-Sévigné, Coiserette, Vezin-le-Coquet, Cuttura and Noyal-Châtillon-sur-Seiche share the border with Rennes or Saint-Claude
Montgermont Le Rheu La Rixouse Ponthoux Saint-Grégoire Cesson-Sévigné Coiserette Vezin-le-Coquet Cuttura Noyal-Châtillon-sur-Seiche
action filter_type
action union
action find
entity Rennes
relation shares border with
action find
entity Saint-Claude
relation shares border with
type type of french administrative division
{'OR': [['Rennes', 'shares border with', {'concept': 'type of french administrative division'}], ['Saint-Claude', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:type_of_french_administrative_division . { ?q property:shares_border_with ?m . VALUES ( ?q ) { ( resource:Rennes ) ( resource:Saint-Claude ) } } }
[]