Simple Question (Direct)
Simple Question
Q1336030
P19
Q56061
USER
Which administrative territory was Luis Tristan born in ?
(Q1336030,P19,c(Q56061))
action filter_type
action find
entity Q1336030
relation P19
type Q56061
['Q1336030', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1336030 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Luis Tristan
action filter_type
action find
entity Luis Tristan
relation place of birth
type administrative territorial entity
['Luis Tristan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Luis_Tristan property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5836
SYSTEM
Toledo
Q5836
(Q1336030,P19,c(Q56061))
action filter_type
action find
entity Q1336030
relation P19
type Q56061
Luis Tristan was born in [ANSWER]
['Q1336030', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1336030 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Toledo
Luis Tristan was born in Toledo
Toledo
action filter_type
action find
entity Luis Tristan
relation place of birth
type administrative territorial entity
['Luis Tristan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Luis_Tristan property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5836
P740
Q43229
USER
What was formed at that administrative territory ?
(c(Q43229),P740,Q5836)
action filter_type
action find_reverse
entity Q5836
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q5836']
SELECT DISTINCT ?o WHERE { ?o property:P740 resource:Q5836 . ?o rdf:type ontology:Q43229 }
Toledo
action filter_type
action find_reverse
entity Toledo
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Toledo']
SELECT DISTINCT ?o WHERE { ?o property:location_of_formation resource:Toledo . ?o rdf:type ontology:organization }
[]
organization
Q1051799
SYSTEM
Joma
Q1051799
(c(Q43229),P740,Q5836)
action filter_type
action find_reverse
entity Q5836
relation P740
type Q43229
[ANSWER] was formed at that administrative territory
[{'concept': 'Q43229'}, 'P740', 'Q5836']
SELECT DISTINCT ?o WHERE { ?o property:P740 resource:Q5836 . ?o rdf:type ontology:Q43229 }
Joma
Joma was formed at that administrative territory
Joma
action filter_type
action find_reverse
entity Toledo
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Toledo']
SELECT DISTINCT ?o WHERE { ?o property:location_of_formation resource:Toledo . ?o rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5836
P47
Q1048835
USER
Which political territories share border with Toledo ?
(c(Q1048835),P47,Q5836)
action filter_type
action find
entity Q5836
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q5836']
SELECT DISTINCT ?z WHERE { resource:Q5836 property:P47 ?z . ?z rdf:type ontology:Q1048835 }
Toledo
action filter_type
action find
entity Toledo
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Toledo']
SELECT DISTINCT ?z WHERE { resource:Toledo property:shares_border_with ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q613574 Q1641519 Q1628866
SYSTEM
Almonacid de Toledo, Albarreal de Tajo, Nambroca
Q674525 Q1628606 Q1642096 Q613574 Q1632009 Q1629972 Q1628564 Q1628866 Q536630 Q1628628 Q1628547 Q1641519
(c(Q1048835),P47,Q5836)
action filter_type
action find
entity Q5836
relation P47
type Q1048835
[ANSWERS] share border with Toledo
[{'concept': 'Q1048835'}, 'P47', 'Q5836']
SELECT DISTINCT ?z WHERE { resource:Q5836 property:P47 ?z . ?z rdf:type ontology:Q1048835 }
Olías del Rey Cobisa Rielves Almonacid de Toledo Argés Burguillos de Toledo Guadamur Nambroca Mocejón Bargas Polán Albarreal de Tajo
Almonacid de Toledo, Albarreal de Tajo and Nambroca share border with Toledo
Almonacid de Toledo Albarreal de Tajo Nambroca
action filter_type
action find
entity Toledo
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Toledo']
SELECT DISTINCT ?z WHERE { resource:Toledo property:shares_border_with ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q613574 Q1641519 Q1628866
P47
Q56061
USER
Which administrative territories are bordered by Almonacid de Toledo, Albarreal de Tajo and Nambroca ?
(c(Q56061),P47,Q613574) (c(Q56061),P47,Q1641519) (c(Q56061),P47,Q1628866)
action union
action filter_type
action find
entity Q613574
relation P47
type Q56061
action filter_type
action find
entity Q1641519
relation P47
type Q56061
action filter_type
action find
entity Q1628866
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q613574'] [{'concept': 'Q56061'}, 'P47', 'Q1641519'] [{'concept': 'Q56061'}, 'P47', 'Q1628866']
SELECT DISTINCT ?z WHERE { { resource:Q613574 property:P47 ?z . ?z rdf:type ontology:Q56061 } UNION { resource:Q1641519 property:P47 ?z . ?z rdf:type ontology:Q56061 } }
Almonacid de Toledo Albarreal de Tajo Nambroca
action union
action filter_type
action find
entity Almonacid de Toledo
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Albarreal de Tajo
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Nambroca
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Almonacid de Toledo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Albarreal de Tajo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Nambroca']
SELECT DISTINCT ?z WHERE { { resource:Almonacid_de_Toledo property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity } UNION { resource:Albarreal_de_Tajo property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q5836
SYSTEM
Toledo
Q5836
(c(Q56061),P47,Q613574) (c(Q56061),P47,Q1641519) (c(Q56061),P47,Q1628866)
action union
action filter_type
action find
entity Q613574
relation P47
type Q56061
action filter_type
action find
entity Q1641519
relation P47
type Q56061
action filter_type
action find
entity Q1628866
relation P47
type Q56061
[ANSWER] is bordered by Almonacid de [ANSWER], Albarreal de Tajo and Nambroca
[{'concept': 'Q56061'}, 'P47', 'Q613574'] [{'concept': 'Q56061'}, 'P47', 'Q1641519'] [{'concept': 'Q56061'}, 'P47', 'Q1628866']
SELECT DISTINCT ?z WHERE { { resource:Q613574 property:P47 ?z . ?z rdf:type ontology:Q56061 } UNION { resource:Q1641519 property:P47 ?z . ?z rdf:type ontology:Q56061 } }
Toledo
Toledo is bordered by Almonacid de Toledo, Albarreal de Tajo and Nambroca
Toledo
action union
action filter_type
action find
entity Almonacid de Toledo
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Albarreal de Tajo
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Nambroca
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Almonacid de Toledo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Albarreal de Tajo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Nambroca']
SELECT DISTINCT ?z WHERE { { resource:Almonacid_de_Toledo property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity } UNION { resource:Albarreal_de_Tajo property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5836
P206
Q355304
USER
Which watercourse is situated nearby that administrative territory ?
(Q5836,P206,c(Q355304))
action filter_type
action find
entity Q5836
relation P206
type Q355304
['Q5836', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?n WHERE { resource:Q5836 property:P206 ?n . ?n rdf:type ontology:Q355304 }
Toledo
action filter_type
action find
entity Toledo
relation located next to body of water
type watercourse
['Toledo', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?n WHERE { resource:Toledo property:located_next_to_body_of_water ?n . ?n rdf:type ontology:watercourse }
[]
watercourse
Q14294
SYSTEM
Tagus
Q14294
(Q5836,P206,c(Q355304))
action filter_type
action find
entity Q5836
relation P206
type Q355304
[ANSWER] is situated nearby that administrative territory
['Q5836', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?n WHERE { resource:Q5836 property:P206 ?n . ?n rdf:type ontology:Q355304 }
Tagus
Tagus is situated nearby that administrative territory
Tagus
action filter_type
action find
entity Toledo
relation located next to body of water
type watercourse
['Toledo', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?n WHERE { resource:Toledo property:located_next_to_body_of_water ?n . ?n rdf:type ontology:watercourse }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2887520 Q5836
P206 P974
Q355304
USER
Which watercourses are located in the neighbourhood of Toledo or are the tributaries of Vistula basin ?
OR((Q5836,P206,c(Q355304)), (Q2887520,P974,c(Q355304)))
action filter_type
action union
action find
entity Q5836
relation P206
action find
entity Q2887520
relation P974
type Q355304
{'OR': [['Q5836', 'P206', {'concept': 'Q355304'}], ['Q2887520', 'P974', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5836 property:P206 ?s } UNION { resource:Q2887520 property:P974 ?s } } . ?s rdf:type ontology:Q355304 }
Vistula basin Toledo
action filter_type
action union
action find
entity Toledo
relation located next to body of water
action find
entity Vistula basin
relation tributary
type watercourse
{'OR': [['Toledo', 'located next to body of water', {'concept': 'watercourse'}], ['Vistula basin', 'tributary', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Toledo property:located_next_to_body_of_water ?s } UNION { resource:Vistula_basin property:tributary ?s } } . ?s rdf:type ontology:watercourse }
[]
watercourse
Q1521184 Q9179254 Q9190132 Q1543147 Q11723319 Q1253322 Q9367505 Q9265268 Q9363827 Q11017177
SYSTEM
Some of them are Nida, Breń, Chodelka, Rudawa, Jaszowiec, Skawa, Uszwica, Gahura, Tążyna, Black Vistula
Q9183151 Q362287 Q840694 Q11787872 Q8040706 Q9274807 Q9182704 Q11797113 Q1408190 Q11823842 Q20892639 Q216488 Q11830730 Q384479 Q11766827 Q9190132 Q9179207 Q175887 Q9367505 Q615272 Q9163814 Q11740410 Q954273 Q9164322 Q11695591 Q9249444 Q11786195 Q11830505 Q1261531 Q2377663 Q11750301 Q387327 Q656640 Q11687172 Q11694388 Q855902 Q9275055 Q11723319 Q833916 Q9374403 Q9347822 Q2134229 Q9189362 Q456984 Q1666451 Q1327596 Q6416699 Q993464 Q9333588 Q9392654 Q640476 Q9179254 Q14294 Q11723418 Q9363827 Q9362287 Q11687913 Q11701188 Q1253322 Q750418 Q1521184 Q6977719 Q1987434 Q11743558 Q3360378 Q772970 Q9265268 Q212562 Q9385858 Q11714994 Q11817152 Q11813032 Q11695193 Q1543147 Q1149087 Q1149245 Q11017177 Q197123 Q1130403 Q60055 Q221200 Q11819711 Q980095 Q927195 Q1477204 Q1475746
OR((Q5836,P206,c(Q355304)), (Q2887520,P974,c(Q355304)))
action filter_type
action union
action find
entity Q5836
relation P206
action find
entity Q2887520
relation P974
type Q355304
[ANSWERS] are located in the neighbourhood of Toledo or are the tributaries of Vistula basin
{'OR': [['Q5836', 'P206', {'concept': 'Q355304'}], ['Q2887520', 'P974', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5836 property:P206 ?s } UNION { resource:Q2887520 property:P974 ?s } } . ?s rdf:type ontology:Q355304 }
Bładnica Sanna Dunajec Mątawa Wyżnica Gostynia Bystra Okrzejka Wierzyca Poniwiec Klikawka San Pszczynka Łęg Malinka Chodelka Brennica Skrwa Uszwica Raba Babulówka Knajka Skawinka Bajerka Dziechcinka Dłubnia Mołtawa Prądnik River Drwęca Szreniawa Krępianka Świder Bzura Bachórz Dobka Biała Gościejów Jaszowiec Kurówka Wilga Suchy Martwa Wisła Chechło Radomka Mątawa Wilga Kisielina Skrwa Lewa Sanka Zwoleńka Wda Breń Tagus Jawornik Tążyna Trześniówka White Vistula Gościradowiec Skawa Pilica Nida Szkarpawa Nidzica Kopydło Leniwka Brda Gahura Opatówka Zagożdżonka Iłownica Pinkasów Potok Partecznik Drwinka Rudawa Przemsza Czarna Staszowska Black Vistula Zgłowiączka Wieprz Narew Wisłoka Plewka Nogat Soła Kamienna Koprzywianka
Nida, Breń, Chodelka, Rudawa, Jaszowiec, Skawa, Uszwica, Gahura, Tążyna and Black Vistula are located in the neighbourhood of Toledo or are the tributaries of Vistula basin
Nida Breń Chodelka Rudawa Jaszowiec Skawa Uszwica Gahura Tążyna Black Vistula
action filter_type
action union
action find
entity Toledo
relation located next to body of water
action find
entity Vistula basin
relation tributary
type watercourse
{'OR': [['Toledo', 'located next to body of water', {'concept': 'watercourse'}], ['Vistula basin', 'tributary', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Toledo property:located_next_to_body_of_water ?s } UNION { resource:Vistula_basin property:tributary ?s } } . ?s rdf:type ontology:watercourse }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2887520
P974
Q82794
USER
Are those watercourses a tributary of Vistula basin ?
(Q2887520,P974,Q1521184) (Q2887520,P974,Q9179254) (Q2887520,P974,Q9190132) (Q2887520,P974,Q1543147) (Q2887520,P974,Q11723319) (Q2887520,P974,Q1253322) (Q2887520,P974,Q9367505) (Q2887520,P974,Q9265268) (Q2887520,P974,Q9363827) (Q2887520,P974,Q11017177)
action is_in
entity prev_answer
action find
entity Q2887520
relation P974
['Q2887520', 'P974', 'Q1521184'] ['Q2887520', 'P974', 'Q9179254'] ['Q2887520', 'P974', 'Q9190132'] ['Q2887520', 'P974', 'Q1543147'] ['Q2887520', 'P974', 'Q11723319'] ['Q2887520', 'P974', 'Q1253322'] ['Q2887520', 'P974', 'Q9367505'] ['Q2887520', 'P974', 'Q9265268'] ['Q2887520', 'P974', 'Q9363827'] ['Q2887520', 'P974', 'Q11017177']
ASK WHERE { resource:Q2887520 property:P974 ?e . VALUES ( ?e ) { ( resource:Q9183151 ) ( resource:Q362287 ) ( resource:Q840694 ) } }
Vistula basin
action is_in
entity prev_answer
action find
entity Vistula basin
relation tributary
['Vistula basin', 'tributary', 'Nida'] ['Vistula basin', 'tributary', 'Breń'] ['Vistula basin', 'tributary', 'Chodelka'] ['Vistula basin', 'tributary', 'Rudawa'] ['Vistula basin', 'tributary', 'Jaszowiec'] ['Vistula basin', 'tributary', 'Skawa'] ['Vistula basin', 'tributary', 'Uszwica'] ['Vistula basin', 'tributary', 'Gahura'] ['Vistula basin', 'tributary', 'Tążyna'] ['Vistula basin', 'tributary', 'Black Vistula']
ASK WHERE { resource:Vistula_basin property:tributary ?e . VALUES ( ?e ) { ( resource:Bładnica ) ( resource:Sanna ) ( resource:Dunajec ) } }
[]
geographic region
SYSTEM
YES
(Q2887520,P974,Q1521184) (Q2887520,P974,Q9179254) (Q2887520,P974,Q9190132) (Q2887520,P974,Q1543147) (Q2887520,P974,Q11723319) (Q2887520,P974,Q1253322) (Q2887520,P974,Q9367505) (Q2887520,P974,Q9265268) (Q2887520,P974,Q9363827) (Q2887520,P974,Q11017177)
action is_in
entity prev_answer
action find
entity Q2887520
relation P974
[ANSWER]
['Q2887520', 'P974', 'Q1521184'] ['Q2887520', 'P974', 'Q9179254'] ['Q2887520', 'P974', 'Q9190132'] ['Q2887520', 'P974', 'Q1543147'] ['Q2887520', 'P974', 'Q11723319'] ['Q2887520', 'P974', 'Q1253322'] ['Q2887520', 'P974', 'Q9367505'] ['Q2887520', 'P974', 'Q9265268'] ['Q2887520', 'P974', 'Q9363827'] ['Q2887520', 'P974', 'Q11017177']
ASK WHERE { resource:Q2887520 property:P974 ?e . VALUES ( ?e ) { ( resource:Q9183151 ) ( resource:Q362287 ) ( resource:Q840694 ) } }
Yes
action is_in
entity prev_answer
action find
entity Vistula basin
relation tributary
['Vistula basin', 'tributary', 'Nida'] ['Vistula basin', 'tributary', 'Breń'] ['Vistula basin', 'tributary', 'Chodelka'] ['Vistula basin', 'tributary', 'Rudawa'] ['Vistula basin', 'tributary', 'Jaszowiec'] ['Vistula basin', 'tributary', 'Skawa'] ['Vistula basin', 'tributary', 'Uszwica'] ['Vistula basin', 'tributary', 'Gahura'] ['Vistula basin', 'tributary', 'Tążyna'] ['Vistula basin', 'tributary', 'Black Vistula']
ASK WHERE { resource:Vistula_basin property:tributary ?e . VALUES ( ?e ) { ( resource:Bładnica ) ( resource:Sanna ) ( resource:Dunajec ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P3173
Q355304 Q811979
USER
Which architectural structures have views of atleast 2 watercourses ?
(c(Q811979),P3173,c(Q355304))
action atleast
action find_tuple_counts
relation P3173
type Q811979
type Q355304
value 2
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?j ) WHERE { ?n property:P3173 ?e . ?n rdf:type ontology:Q811979 . ?e rdf:type ontology:Q355304 } GROUP BY ?n } . FILTER ( ?j >= 2 ) }
action atleast
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
value 2
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?j ) WHERE { ?n property:offers_view_on ?e . ?n rdf:type ontology:architectural_structure . ?e rdf:type ontology:watercourse } GROUP BY ?n } . FILTER ( ?j >= 2 ) }
[]
watercourse architectural structure
Q26196531
SYSTEM
Washburn Point
Q26196531
(c(Q811979),P3173,c(Q355304))
action atleast
action find_tuple_counts
relation P3173
type Q811979
type Q355304
value 2
[ANSWER] have views of atleast 2 watercourses
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?j ) WHERE { ?n property:P3173 ?e . ?n rdf:type ontology:Q811979 . ?e rdf:type ontology:Q355304 } GROUP BY ?n } . FILTER ( ?j >= 2 ) }
Washburn Point
Washburn Point have views of atleast 2 watercourses
Washburn Point
action atleast
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
value 2
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?j ) WHERE { ?n property:offers_view_on ?e . ?n rdf:type ontology:architectural_structure . ?e rdf:type ontology:watercourse } GROUP BY ?n } . FILTER ( ?j >= 2 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q319376
P17
Q1048835 Q2668072 Q355304
USER
How many political territories do approximately the same number of collections or watercourses belong to as Hanau-Münzenberg ?
(c(Q2668072)|c(Q355304),P17,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q2668072
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q355304
action count
action filter_multi_types
action find_reverse
entity Q319376
relation P17
type Q2668072
type Q355304
[[{'concept': 'Q2668072'}, {'concept': 'Q355304'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?i ) WHERE { { ?z property:P17 ?g . ?g rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q2668072 } UNION { ?z property:P17 ?g . ?g rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q355304 } } GROUP BY ?g } . FILTER ( ?i = ?d ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:P17 resource:Q319376 . { { ?h rdf:type ontology:Q2668072 } UNION { ?h rdf:type ontology:Q355304 } } } } }
Hanau-Münzenberg
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type collection
action find_reverse_tuple_counts
relation country
type political territorial entity
type watercourse
action count
action filter_multi_types
action find_reverse
entity Hanau-Münzenberg
relation country
type collection
type watercourse
[[{'concept': 'collection'}, {'concept': 'watercourse'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?i ) WHERE { { ?z property:country ?g . ?g rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:collection } UNION { ?z property:country ?g . ?g rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:watercourse } } GROUP BY ?g } . FILTER ( ?i = ?d ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:country resource:Hanau-Münzenberg . { { ?h rdf:type ontology:collection } UNION { ?h rdf:type ontology:watercourse } } } } }
[]
political territorial entity collection watercourse
SYSTEM
62
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q785 Q193619 Q769 Q685 Q699964 Q763 Q13767 Q34617 Q22880 Q9676 Q641138 Q664 Q693551 Q13353 Q766 Q848383 Q5705 Q13726 Q953068 Q16 Q5785 Q35 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q778 Q2002138 Q3899 Q35672 Q25228 Q1747689 Q781 Q691 Q757 Q9648 Q231 Q234 Q2991382 Q40 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q2668072)|c(Q355304),P17,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q2668072
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q355304
action count
action filter_multi_types
action find_reverse
entity Q319376
relation P17
type Q2668072
type Q355304
[ANSWER]
[[{'concept': 'Q2668072'}, {'concept': 'Q355304'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?i ) WHERE { { ?z property:P17 ?g . ?g rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q2668072 } UNION { ?z property:P17 ?g . ?g rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q355304 } } GROUP BY ?g } . FILTER ( ?i = ?d ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:P17 resource:Q319376 . { { ?h rdf:type ontology:Q2668072 } UNION { ?h rdf:type ontology:Q355304 } } } } }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves New Zealand Landgraviate of Hesse-Darmstadt Montserrat Jamaica Duchy of Rome Catalonia Albay South-West Africa Canada Cayman Islands Denmark Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands The Bahamas Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Ancient Rome Antigua and Barbuda Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Austria Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
62
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type collection
action find_reverse_tuple_counts
relation country
type political territorial entity
type watercourse
action count
action filter_multi_types
action find_reverse
entity Hanau-Münzenberg
relation country
type collection
type watercourse
[[{'concept': 'collection'}, {'concept': 'watercourse'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?i ) WHERE { { ?z property:country ?g . ?g rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:collection } UNION { ?z property:country ?g . ?g rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:watercourse } } GROUP BY ?g } . FILTER ( ?i = ?d ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:country resource:Hanau-Münzenberg . { { ?h rdf:type ontology:collection } UNION { ?h rdf:type ontology:watercourse } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3899
P17
Q1048835 Q2668072 Q355304
USER
And how about Kalimantan Timur?
(c(Q2668072)|c(Q355304),P17,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q2668072
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q355304
action count
action filter_multi_types
action find_reverse
entity Q3899
relation P17
type Q2668072
type Q355304
[[{'concept': 'Q2668072'}, {'concept': 'Q355304'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) ?x WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2668072 ) ( ontology:Q355304 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:P17 resource:Q3899 . { { ?z rdf:type ontology:Q2668072 } UNION { ?z rdf:type ontology:Q355304 } } } } . FILTER ( ?h = ?d ) }
Kalimantan Timur
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type collection
action find_reverse_tuple_counts
relation country
type political territorial entity
type watercourse
action count
action filter_multi_types
action find_reverse
entity Kalimantan Timur
relation country
type collection
type watercourse
[[{'concept': 'collection'}, {'concept': 'watercourse'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) ?x WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:collection ) ( ontology:watercourse ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:country resource:Kalimantan_Timur . { { ?z rdf:type ontology:collection } UNION { ?z rdf:type ontology:watercourse } } } } . FILTER ( ?h = ?d ) }
[]
political territorial entity collection watercourse
SYSTEM
62
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q785 Q193619 Q769 Q685 Q699964 Q763 Q13767 Q34617 Q22880 Q9676 Q641138 Q664 Q693551 Q13353 Q766 Q848383 Q5705 Q13726 Q953068 Q16 Q5785 Q35 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q778 Q2002138 Q3899 Q35672 Q25228 Q1747689 Q781 Q691 Q757 Q9648 Q231 Q234 Q2991382 Q40 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q2668072)|c(Q355304),P17,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q2668072
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q355304
action count
action filter_multi_types
action find_reverse
entity Q3899
relation P17
type Q2668072
type Q355304
[ANSWER]
[[{'concept': 'Q2668072'}, {'concept': 'Q355304'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) ?x WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2668072 ) ( ontology:Q355304 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:P17 resource:Q3899 . { { ?z rdf:type ontology:Q2668072 } UNION { ?z rdf:type ontology:Q355304 } } } } . FILTER ( ?h = ?d ) }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves New Zealand Landgraviate of Hesse-Darmstadt Montserrat Jamaica Duchy of Rome Catalonia Albay South-West Africa Canada Cayman Islands Denmark Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands The Bahamas Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Ancient Rome Antigua and Barbuda Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Austria Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
62
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type collection
action find_reverse_tuple_counts
relation country
type political territorial entity
type watercourse
action count
action filter_multi_types
action find_reverse
entity Kalimantan Timur
relation country
type collection
type watercourse
[[{'concept': 'collection'}, {'concept': 'watercourse'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) ?x WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:collection ) ( ontology:watercourse ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:country resource:Kalimantan_Timur . { { ?z rdf:type ontology:collection } UNION { ?z rdf:type ontology:watercourse } } } } . FILTER ( ?h = ?d ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11017177
P201
Q337567
USER
What flows out from Black Vistula ?
(Q11017177,P201,c(Q337567))
action filter_type
action find
entity Q11017177
relation P201
type Q337567
['Q11017177', 'P201', {'concept': 'Q337567'}]
SELECT DISTINCT ?d WHERE { resource:Q11017177 property:P201 ?d . ?d rdf:type ontology:Q337567 }
Black Vistula
action filter_type
action find
entity Black Vistula
relation lake outflow
type still waters
['Black Vistula', 'lake outflow', {'concept': 'still waters'}]
SELECT DISTINCT ?d WHERE { resource:Black_Vistula property:lake_outflow ?d . ?d rdf:type ontology:still_waters }
[]
still waters
Q11726220
SYSTEM
Czerniańskie Lake
Q11726220
(Q11017177,P201,c(Q337567))
action filter_type
action find
entity Q11017177
relation P201
type Q337567
The [ANSWER] flows out from Black Vistula
['Q11017177', 'P201', {'concept': 'Q337567'}]
SELECT DISTINCT ?d WHERE { resource:Q11017177 property:P201 ?d . ?d rdf:type ontology:Q337567 }
Czerniańskie Lake
The Czerniańskie Lake flows out from Black Vistula
Czerniańskie Lake
action filter_type
action find
entity Black Vistula
relation lake outflow
type still waters
['Black Vistula', 'lake outflow', {'concept': 'still waters'}]
SELECT DISTINCT ?d WHERE { resource:Black_Vistula property:lake_outflow ?d . ?d rdf:type ontology:still_waters }
[]