Simple Question (Direct)
Simple Question
Q19758869
P40
Q502895
USER
Which person is a child of Marie Frédérique Isabelle van Heiden Reinestein ?
(Q19758869,P40,c(Q502895))
action filter_type
action find
entity Q19758869
relation P40
type Q502895
['Q19758869', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q19758869 property:P40 ?e . ?e rdf:type ontology:Q502895 }
Marie Frédérique Isabelle van Heiden Reinestein
action filter_type
action find
entity Marie Frédérique Isabelle van Heiden Reinestein
relation child
type common name
['Marie Frédérique Isabelle van Heiden Reinestein', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Marie_Frédérique_Isabelle_van_Heiden_Reinestein property:child ?e . ?e rdf:type ontology:common_name }
[]
common name
Q4776559
SYSTEM
Louis Albert Sigismond Jacques de Milly van Heiden Reinestein
Q4776559
(Q19758869,P40,c(Q502895))
action filter_type
action find
entity Q19758869
relation P40
type Q502895
[ANSWER] is a child of Marie Frédérique Isabelle van Heiden Reinestein
['Q19758869', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q19758869 property:P40 ?e . ?e rdf:type ontology:Q502895 }
Louis Albert Sigismond Jacques de Milly van Heiden Reinestein
Louis Albert Sigismond Jacques de Milly van Heiden Reinestein is a child of Marie Frédérique Isabelle van Heiden Reinestein
Louis Albert Sigismond Jacques de Milly van Heiden Reinestein
action filter_type
action find
entity Marie Frédérique Isabelle van Heiden Reinestein
relation child
type common name
['Marie Frédérique Isabelle van Heiden Reinestein', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Marie_Frédérique_Isabelle_van_Heiden_Reinestein property:child ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4776559
P19
Q56061
USER
Where was that person born ?
(Q4776559,P19,c(Q56061))
action filter_type
action find
entity Q4776559
relation P19
type Q56061
['Q4776559', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q4776559 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Louis Albert Sigismond Jacques de Milly van Heiden Reinestein
action filter_type
action find
entity Louis Albert Sigismond Jacques de Milly van Heiden Reinestein
relation place of birth
type administrative territorial entity
['Louis Albert Sigismond Jacques de Milly van Heiden Reinestein', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Louis_Albert_Sigismond_Jacques_de_Milly_van_Heiden_Reinestein property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q228666
SYSTEM
Zuidlaren
Q228666
(Q4776559,P19,c(Q56061))
action filter_type
action find
entity Q4776559
relation P19
type Q56061
That person was born in [ANSWER]
['Q4776559', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q4776559 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Zuidlaren
That person was born in Zuidlaren
Zuidlaren
action filter_type
action find
entity Louis Albert Sigismond Jacques de Milly van Heiden Reinestein
relation place of birth
type administrative territorial entity
['Louis Albert Sigismond Jacques de Milly van Heiden Reinestein', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Louis_Albert_Sigismond_Jacques_de_Milly_van_Heiden_Reinestein property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P276
Q751876 Q34442
USER
How many châteaux and roads have their location as that administrative territory ?
(c(Q751876),P276,Q228666) (c(Q34442),P276,Q228666) (c(Q751876),P276,Q228666) (c(Q34442),P276,Q228666)
action count
action union
action filter_type
action find_reverse
entity Q228666
relation P276
type Q751876
action filter_type
action find_reverse
entity Q228666
relation P276
type Q34442
[{'concept': 'Q751876'}, 'P276', 'Q228666'] [{'concept': 'Q34442'}, 'P276', 'Q228666'] [{'concept': 'Q751876'}, 'P276', 'Q228666'] [{'concept': 'Q34442'}, 'P276', 'Q228666']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:P276 resource:Q228666 . ?r rdf:type ontology:Q751876 } UNION { ?r rdf:type ontology:Q34442 . ?r property:P276 resource:Q228666 } }
action count
action union
action filter_type
action find_reverse
entity Zuidlaren
relation location
type château
action filter_type
action find_reverse
entity Zuidlaren
relation location
type road
[{'concept': 'château'}, 'location', 'Zuidlaren'] [{'concept': 'road'}, 'location', 'Zuidlaren'] [{'concept': 'château'}, 'location', 'Zuidlaren'] [{'concept': 'road'}, 'location', 'Zuidlaren']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:location resource:Zuidlaren . ?r rdf:type ontology:château } UNION { ?r rdf:type ontology:road . ?r property:location resource:Zuidlaren } }
[]
château road
SYSTEM
1 châteaux and 162 roads
Q19004354 Q19342288 Q19331868 Q19376778 Q19008436 Q19473914 Q18938371 Q19117031 Q18971082 Q19004613 Q19015568 Q18961705 Q18964727 Q19011206 Q18961354 Q1809424 Q18950293 Q19008903 Q19058535 Q18944235 Q18957561 Q19264219 Q19356466 Q19265823 Q19532371 Q19323205 Q19389973 Q18971420 Q19198226 Q19297145 Q19649663 Q19399924 Q19521314 Q19465406 Q18962701 Q19120868 Q19512957 Q19509668 Q18971933 Q19266642 Q19508624 Q19058702 Q19510449 Q19562357 Q19253204 Q19547350 Q19651141 Q19201198 Q19632574 Q19009665 Q19118799 Q19565213 Q18944385 Q19396980 Q19628381 Q19402828 Q19400209 Q19566689 Q19241668 Q19255310 Q19201534 Q18949155 Q19389789 Q19115578 Q19463768 Q19008075 Q19317357 Q18951478 Q19658629 Q19010226 Q19119841 Q19243702 Q19205369 Q19011554 Q19330115 Q19632647 Q19337042 Q19627796 Q19012448 Q19548034 Q19564652 Q19119125 Q19324608 Q18959154 Q19004739 Q19402266 Q18971419 Q19633490 Q19264479 Q19116496 Q18970331 Q18940658 Q19428305 Q19243861 Q19561963 Q19185147 Q19116915 Q19345912 Q19200933 Q19207876 Q19018001 Q18967053 Q19202884 Q19275573 Q19327847 Q19292595 Q19267103 Q19303074 Q19323167 Q19270820 Q18982449 Q19247092 Q19292280 Q19517248 Q19282533 Q19509725 Q19336094 Q19207239 Q19108944 Q19317833 Q19004345 Q19121801 Q19397546 Q19323276 Q19010852 Q19343648 Q18938658 Q19271160 Q18949883 Q19201466 Q19321257 Q19307499 Q19645232 Q19254613 Q19008710 Q18963291 Q19117444 Q19347212 Q19251927 Q19335181 Q18948081 Q19561868 Q19659117 Q19516624 Q19005102 Q18962681 Q19565174 Q18944995 Q19567142 Q19461620 Q19058651 Q19511654 Q19636225 Q18957300 Q18953381 Q19293960 Q19655667 Q19327124 Q19120162 Q19118332 Q19306705 Q19006840 Q19116083
(c(Q751876),P276,Q228666) (c(Q34442),P276,Q228666) (c(Q751876),P276,Q228666) (c(Q34442),P276,Q228666)
action count
action union
action filter_type
action find_reverse
entity Q228666
relation P276
type Q751876
action filter_type
action find_reverse
entity Q228666
relation P276
type Q34442
[ANSWER]
[{'concept': 'Q751876'}, 'P276', 'Q228666'] [{'concept': 'Q34442'}, 'P276', 'Q228666'] [{'concept': 'Q751876'}, 'P276', 'Q228666'] [{'concept': 'Q34442'}, 'P276', 'Q228666']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:P276 resource:Q228666 . ?r rdf:type ontology:Q751876 } UNION { ?r rdf:type ontology:Q34442 . ?r property:P276 resource:Q228666 } }
de Baander Meidoornlaan Ludinge Noordhoff De Hanebalken Ritmeesterlaan Annerweg Elzenhof Brigadelaan De Spanten Dennenlaan Bolwerk Bovendiepen De Oplang Zwetdijk Laarwoud Zaalstede de Holtakkers E Bataljonslaan Zuiderstraat Jardensweg Nijslagen Hulstlaan Sparrenlaan Leemkuilenweg Oldenhof Brink Z.Z. Havenstraat Kerkstraat Westeind Oude Anloërweg Smedinge Rheebrugge Boringshof Esweg Schutsweg Scheperij Brinkstraat Huzarenlaan Schapendrift Echten Schipborgerweg 't Laarwoud Hogeweg Stationsweg Westrup Havixhorst Veninge De Klencke Ericalaan Ter Heyll Batinghe Oranjelaan Veldakkerslaan Oude Zeegserweg Oude Dijk Tienelsweg Halmersinge Hofakkers Hazelaarpad Berkenweg Oldengaarden Eikenlaan Regimentslaan De Gording Laarweg Beukenlaan Wiltinge de Langakkers Esdoornlaan Heideweg Grenadierslaan de Wam Lottinglaan Vennebroek Marktstraat Veenplasweg Domineeskamp Steendobbe Telefoonstraat Garnizoenslaan Lemferdinge Zuurveld De Sporen Oude Tolweg Brink O.Z. Verlengde Stationsweg Hovinge Elingshof Bremweg Artillerielaan Popkenweg Heijtinge 't Gebint Hanekamp Eltinge Middenstraat Havezathelaan Groningerstraat Dingspellaan Branten Heerdelaan Jagerslaan Lindenhof Kastelenakkers Iepenlaan Klein Heide Leemdobbe Infanterielaan Campinge Hemsinge Kastanjelaan Sleedoornlaan Julianalaan Schepersweg Marijkelaan Groenkamp Egge Lageweg de Slaiten Gelinge Osbroeken Leenakkersweg de Millystraat Mensinge Anssen Irenelaan Bernhardlaan Gouden Regenlaan Larikslaan Koningstraat Wandeske Hondsrugstraat de Hilde Boslaan Emmalaan Moerdobbe het Oelbred Margrietlaan Wolferdinge 't Achterom Winkelakkers Sissinge de Stiel Borgwallinge Ter Borch Beatrixplein Tiphofweg Randweg Ebbingekamp Schoolstraat Vledderinge Zuiderlaan Zetstee Kerkbrink Wilhelminalaan Lijsterbeslaan Eskadronslaan Entinge Koningdwarsstraat De Dijk Ekkelkamp
1 châteaux and 162 roads
action count
action union
action filter_type
action find_reverse
entity Zuidlaren
relation location
type château
action filter_type
action find_reverse
entity Zuidlaren
relation location
type road
[{'concept': 'château'}, 'location', 'Zuidlaren'] [{'concept': 'road'}, 'location', 'Zuidlaren'] [{'concept': 'château'}, 'location', 'Zuidlaren'] [{'concept': 'road'}, 'location', 'Zuidlaren']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:location resource:Zuidlaren . ?r rdf:type ontology:château } UNION { ?r rdf:type ontology:road . ?r property:location resource:Zuidlaren } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11665907 Q228666
P17
Q15617994
USER
Which administrative territories are Zuidlaren or Hida-Kiyomi interchange located in ?
OR((Q228666,P17,c(Q15617994)), (Q11665907,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q228666
relation P17
action find
entity Q11665907
relation P17
type Q15617994
{'OR': [['Q228666', 'P17', {'concept': 'Q15617994'}], ['Q11665907', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { { resource:Q11665907 property:P17 ?d } UNION { resource:Q228666 property:P17 ?d } } }
Hida-Kiyomi interchange Zuidlaren
action filter_type
action union
action find
entity Zuidlaren
relation country
action find
entity Hida-Kiyomi interchange
relation country
type designation for an administrative territorial entity
{'OR': [['Zuidlaren', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Hida-Kiyomi interchange', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Hida-Kiyomi_interchange property:country ?d } UNION { resource:Zuidlaren property:country ?d } } }
[]
designation for an administrative territorial entity
Q17 Q55
SYSTEM
Japan, Netherlands
Q17 Q55
OR((Q228666,P17,c(Q15617994)), (Q11665907,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q228666
relation P17
action find
entity Q11665907
relation P17
type Q15617994
Zuidlaren or Hida-Kiyomi interchange are located in [ANSWERS]
{'OR': [['Q228666', 'P17', {'concept': 'Q15617994'}], ['Q11665907', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { { resource:Q11665907 property:P17 ?d } UNION { resource:Q228666 property:P17 ?d } } }
Japan Netherlands
Zuidlaren or Hida-Kiyomi interchange are located in Japan and Netherlands
Japan Netherlands
action filter_type
action union
action find
entity Zuidlaren
relation country
action find
entity Hida-Kiyomi interchange
relation country
type designation for an administrative territorial entity
{'OR': [['Zuidlaren', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Hida-Kiyomi interchange', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Hida-Kiyomi_interchange property:country ?d } UNION { resource:Zuidlaren property:country ?d } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q22712313
P710
Q13406554
USER
Do 2016 World Single Distance Speed Skating Championships – Women's team pursuit have those administrative territories as their participant ?
(Q22712313,P710,Q17) (Q22712313,P710,Q55)
action is_in
entity prev_answer
action find
entity Q22712313
relation P710
['Q22712313', 'P710', 'Q17'] ['Q22712313', 'P710', 'Q55']
ASK WHERE { VALUES ( ?o ) { ( resource:Q17 ) ( resource:Q55 ) } . resource:Q22712313 property:P710 ?o }
2016 World Single Distance Speed Skating Championships – Women's team pursuit
action is_in
entity prev_answer
action find
entity 2016 World Single Distance Speed Skating Championships – Women's team pursuit
relation participant
["2016 World Single Distance Speed Skating Championships – Women's team pursuit", 'participant', 'Japan'] ["2016 World Single Distance Speed Skating Championships – Women's team pursuit", 'participant', 'Netherlands']
ASK WHERE { VALUES ( ?o ) { ( resource:Japan ) ( resource:Netherlands ) } . resource:2016_World_Single_Distance_Speed_Skating_Championships_–_Women's_team_pursuit property:participant ?o }
[]
sport competition
SYSTEM
YES
(Q22712313,P710,Q17) (Q22712313,P710,Q55)
action is_in
entity prev_answer
action find
entity Q22712313
relation P710
[ANSWER]
['Q22712313', 'P710', 'Q17'] ['Q22712313', 'P710', 'Q55']
ASK WHERE { VALUES ( ?o ) { ( resource:Q17 ) ( resource:Q55 ) } . resource:Q22712313 property:P710 ?o }
Yes
action is_in
entity prev_answer
action find
entity 2016 World Single Distance Speed Skating Championships – Women's team pursuit
relation participant
["2016 World Single Distance Speed Skating Championships – Women's team pursuit", 'participant', 'Japan'] ["2016 World Single Distance Speed Skating Championships – Women's team pursuit", 'participant', 'Netherlands']
ASK WHERE { VALUES ( ?o ) { ( resource:Japan ) ( resource:Netherlands ) } . resource:2016_World_Single_Distance_Speed_Skating_Championships_–_Women's_team_pursuit property:participant ?o }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q769
P530
Q1048835 Q15617994
USER
How many political territories holds diplomatic relationship with around the same number of administrative territories as Grenada ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?l ) WHERE { ?g property:P530 ?i . ?g rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ontology:Q1048835 . resource:Q769 property:P530 ?x } } }
Grenada
action count
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 Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?l ) WHERE { ?g property:diplomatic_relation ?i . ?g rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ontology:political_territorial_entity . resource:Grenada property:diplomatic_relation ?x } } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?l ) WHERE { ?g property:P530 ?i . ?g rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ontology:Q1048835 . resource:Q769 property:P530 ?x } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
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 Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?l ) WHERE { ?g property:diplomatic_relation ?i . ?g rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ontology:political_territorial_entity . resource:Grenada property:diplomatic_relation ?x } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q766
P530
Q1048835 Q15617994
USER
And also tell me about Jamaica?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?x ) WHERE { ?m property:P530 ?w . ?m rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o rdf:type ontology:Q1048835 . resource:Q766 property:P530 ?o } } . FILTER ( ?x = ?g ) }
Jamaica
action count
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?x ) WHERE { ?m property:diplomatic_relation ?w . ?m rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Jamaica property:diplomatic_relation ?o } } . FILTER ( ?x = ?g ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?x ) WHERE { ?m property:P530 ?w . ?m rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o rdf:type ontology:Q1048835 . resource:Q766 property:P530 ?o } } . FILTER ( ?x = ?g ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?x ) WHERE { ?m property:diplomatic_relation ?w . ?m rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Jamaica property:diplomatic_relation ?o } } . FILTER ( ?x = ?g ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?q ) WHERE { ?m property:P530 ?s . ?m rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?m } } . { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?g ) WHERE { ?i property:P530 ?k . ?i rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?g = ?w ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?q ) WHERE { ?m property:diplomatic_relation ?s . ?m rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } } . { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?g ) WHERE { ?i property:diplomatic_relation ?k . ?i rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?g = ?w ) }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic relationships with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?q ) WHERE { ?m property:P530 ?s . ?m rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?m } } . { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?g ) WHERE { ?i property:P530 ?k . ?i rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?g = ?w ) }
Germany
Germany have diplomatic relationships with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?q ) WHERE { ?m property:diplomatic_relation ?s . ?m rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } } . { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?g ) WHERE { ?i property:diplomatic_relation ?k . ?i rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?g = ?w ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q953206 Q228666
P17
Q15617994
USER
Which administrative territories are Zuidlaren or Uddjaure present in ?
OR((Q228666,P17,c(Q15617994)), (Q953206,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q228666
relation P17
action find
entity Q953206
relation P17
type Q15617994
{'OR': [['Q228666', 'P17', {'concept': 'Q15617994'}], ['Q953206', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q228666 property:P17 ?p } UNION { resource:Q953206 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Uddjaure Zuidlaren
action filter_type
action union
action find
entity Zuidlaren
relation country
action find
entity Uddjaure
relation country
type designation for an administrative territorial entity
{'OR': [['Zuidlaren', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Uddjaure', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Zuidlaren property:country ?p } UNION { resource:Uddjaure property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55 Q34
SYSTEM
Netherlands, Sweden
Q55 Q34
OR((Q228666,P17,c(Q15617994)), (Q953206,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q228666
relation P17
action find
entity Q953206
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q228666', 'P17', {'concept': 'Q15617994'}], ['Q953206', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q228666 property:P17 ?p } UNION { resource:Q953206 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Netherlands Sweden
Which administrative territories are Zuidlaren or Uddjaure present in
Netherlands Sweden
action filter_type
action union
action find
entity Zuidlaren
relation country
action find
entity Uddjaure
relation country
type designation for an administrative territorial entity
{'OR': [['Zuidlaren', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Uddjaure', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Zuidlaren property:country ?p } UNION { resource:Uddjaure property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q55
P37
Q34770 Q25295
USER
How many languages or language families are considered to be the official language of Netherlands ?
(Q55,P37,c(Q34770)) (Q55,P37,c(Q25295))
action count
action union
action filter_type
action find
entity Q55
relation P37
type Q34770
action filter_type
action find
entity Q55
relation P37
type Q25295
['Q55', 'P37', {'concept': 'Q34770'}] ['Q55', 'P37', {'concept': 'Q25295'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { VALUES ( ?w ) { ( ontology:Q25295 ) ( ontology:Q34770 ) } . ?q rdf:type ?w }
Netherlands
action count
action union
action filter_type
action find
entity Netherlands
relation official language
type language
action filter_type
action find
entity Netherlands
relation official language
type language family
['Netherlands', 'official language', {'concept': 'language'}] ['Netherlands', 'official language', {'concept': 'language family'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { VALUES ( ?w ) { ( ontology:language_family ) ( ontology:language ) } . ?q rdf:type ?w }
[]
language language family
SYSTEM
2
Q1860 Q33856
(Q55,P37,c(Q34770)) (Q55,P37,c(Q25295))
action count
action union
action filter_type
action find
entity Q55
relation P37
type Q34770
action filter_type
action find
entity Q55
relation P37
type Q25295
[ANSWER]
['Q55', 'P37', {'concept': 'Q34770'}] ['Q55', 'P37', {'concept': 'Q25295'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { VALUES ( ?w ) { ( ontology:Q25295 ) ( ontology:Q34770 ) } . ?q rdf:type ?w }
English Papiamento
2
action count
action union
action filter_type
action find
entity Netherlands
relation official language
type language
action filter_type
action find
entity Netherlands
relation official language
type language family
['Netherlands', 'official language', {'concept': 'language'}] ['Netherlands', 'official language', {'concept': 'language family'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { VALUES ( ?w ) { ( ontology:language_family ) ( ontology:language ) } . ?q rdf:type ?w }
[]