Simple Question (Direct)
Simple Question
Q501446
P26
Q502895
USER
Who is the spouse of Prince Andrew of Yugoslavia ?
(Q501446,P26,c(Q502895))
action filter_type
action find
entity Q501446
relation P26
type Q502895
['Q501446', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q501446 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Prince Andrew of Yugoslavia
action filter_type
action find
entity Prince Andrew of Yugoslavia
relation spouse
type common name
['Prince Andrew of Yugoslavia', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Prince_Andrew_of_Yugoslavia property:spouse ?e . ?e rdf:type ontology:common_name }
[]
common name
Q6530298
SYSTEM
Princess Christina Margarethe of Hesse
Q6530298
(Q501446,P26,c(Q502895))
action filter_type
action find
entity Q501446
relation P26
type Q502895
The spouse of Prince Andrew of Yugoslavia is the [ANSWER]
['Q501446', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q501446 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Princess Christina Margarethe of Hesse
The spouse of Prince Andrew of Yugoslavia is the Princess Christina Margarethe of Hesse
Princess Christina Margarethe of Hesse
action filter_type
action find
entity Prince Andrew of Yugoslavia
relation spouse
type common name
['Prince Andrew of Yugoslavia', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Prince_Andrew_of_Yugoslavia property:spouse ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6530298
P20
Q13220204
USER
Which administrative country subdivision is the place of death of that person ?
(Q6530298,P20,c(Q13220204))
action filter_type
action find
entity Q6530298
relation P20
type Q13220204
['Q6530298', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?z WHERE { resource:Q6530298 property:P20 ?z . ?z rdf:type ontology:Q13220204 }
Princess Christina Margarethe of Hesse
action filter_type
action find
entity Princess Christina Margarethe of Hesse
relation place of death
type second-level administrative country subdivision
['Princess Christina Margarethe of Hesse', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?z WHERE { resource:Princess_Christina_Margarethe_of_Hesse property:place_of_death ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q64380
SYSTEM
Gersau
Q64380
(Q6530298,P20,c(Q13220204))
action filter_type
action find
entity Q6530298
relation P20
type Q13220204
[ANSWER] is the place of death of that person
['Q6530298', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?z WHERE { resource:Q6530298 property:P20 ?z . ?z rdf:type ontology:Q13220204 }
Gersau
Gersau is the place of death of that person
Gersau
action filter_type
action find
entity Princess Christina Margarethe of Hesse
relation place of death
type second-level administrative country subdivision
['Princess Christina Margarethe of Hesse', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?z WHERE { resource:Princess_Christina_Margarethe_of_Hesse property:place_of_death ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6530298
P40
Q502895
USER
Which people have that one as a child ?
(c(Q502895),P40,Q64380)
action filter_type
action find_reverse
entity Q6530298
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q64380']
SELECT DISTINCT ?i WHERE { ?i property:P40 resource:Q6530298 . ?i rdf:type ontology:Q502895 }
Princess Christina Margarethe of Hesse
action filter_type
action find_reverse
entity Princess Christina Margarethe of Hesse
relation child
type common name
[{'concept': 'common name'}, 'child', 'Gersau']
SELECT DISTINCT ?i WHERE { ?i property:child resource:Princess_Christina_Margarethe_of_Hesse . ?i rdf:type ontology:common_name }
[]
common name
Q630371 Q2314771
SYSTEM
Princess Sophie of Greece and Denmark, Prince Christoph of Hesse
Q630371 Q2314771
(c(Q502895),P40,Q64380)
action filter_type
action find_reverse
entity Q6530298
relation P40
type Q502895
[ANSWERS] have that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q64380']
SELECT DISTINCT ?i WHERE { ?i property:P40 resource:Q6530298 . ?i rdf:type ontology:Q502895 }
Princess Sophie of Greece and Denmark Prince Christoph of Hesse
Princess Sophie of Greece and Denmark and Prince Christoph of Hesse have that one as a child
Princess Sophie of Greece and Denmark Prince Christoph of Hesse
action filter_type
action find_reverse
entity Princess Christina Margarethe of Hesse
relation child
type common name
[{'concept': 'common name'}, 'child', 'Gersau']
SELECT DISTINCT ?i WHERE { ?i property:child resource:Princess_Christina_Margarethe_of_Hesse . ?i rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1562062 Q501446
P22
Q502895
USER
Which people were the dad of Prince Andrew of Yugoslavia or Blathmac mac Áedo Sláine ?
OR((Q501446,P22,c(Q502895)), (Q1562062,P22,c(Q502895)))
action filter_type
action union
action find
entity Q501446
relation P22
action find
entity Q1562062
relation P22
type Q502895
{'OR': [['Q501446', 'P22', {'concept': 'Q502895'}], ['Q1562062', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . { { resource:Q501446 property:P22 ?k } UNION { resource:Q1562062 property:P22 ?k } } }
Blathmac mac Áedo Sláine Prince Andrew of Yugoslavia
action filter_type
action union
action find
entity Prince Andrew of Yugoslavia
relation father
action find
entity Blathmac mac Áedo Sláine
relation father
type common name
{'OR': [['Prince Andrew of Yugoslavia', 'father', {'concept': 'common name'}], ['Blathmac mac Áedo Sláine', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . { { resource:Prince_Andrew_of_Yugoslavia property:father ?k } UNION { resource:Blathmac_mac_Áedo_Sláine property:father ?k } } }
[]
common name
Q207384 Q961521
SYSTEM
Alexander I of Yugoslavia, Áed Sláine
Q207384 Q961521
OR((Q501446,P22,c(Q502895)), (Q1562062,P22,c(Q502895)))
action filter_type
action union
action find
entity Q501446
relation P22
action find
entity Q1562062
relation P22
type Q502895
[ANSWERS] were the dad of Prince Andrew of Yugoslavia or Blathmac mac Áedo Sláine
{'OR': [['Q501446', 'P22', {'concept': 'Q502895'}], ['Q1562062', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . { { resource:Q501446 property:P22 ?k } UNION { resource:Q1562062 property:P22 ?k } } }
Alexander I of Yugoslavia Áed Sláine
Alexander I of Yugoslavia and Áed Sláine were the dad of Prince Andrew of Yugoslavia or Blathmac mac Áedo Sláine
Alexander I of Yugoslavia Áed Sláine
action filter_type
action union
action find
entity Prince Andrew of Yugoslavia
relation father
action find
entity Blathmac mac Áedo Sláine
relation father
type common name
{'OR': [['Prince Andrew of Yugoslavia', 'father', {'concept': 'common name'}], ['Blathmac mac Áedo Sláine', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . { { resource:Prince_Andrew_of_Yugoslavia property:father ?k } UNION { resource:Blathmac_mac_Áedo_Sláine property:father ?k } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q15140309
P725
Q502895 Q1001378
USER
How many cinematic techniques have been dubbed by lesser number of people than Emil & Ida i Lönneberga ?
(c(Q1001378),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q1001378
type Q502895
action count
action filter_type
action find
entity Q15140309
relation P725
type Q502895
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { resource:Q15140309 property:P725 ?d . ?d rdf:type ontology:Q502895 } } . FILTER ( ?x < ?t ) . { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?x ) WHERE { ?u rdf:type ontology:Q1001378 . ?k rdf:type ontology:Q502895 . ?u property:P725 ?k } GROUP BY ?u } }
Emil & Ida i Lönneberga
action count
action less
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
action count
action filter_type
action find
entity Emil & Ida i Lönneberga
relation voice actor
type common name
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { resource:Emil_&_Ida_i_Lönneberga property:voice_actor ?d . ?d rdf:type ontology:common_name } } . FILTER ( ?x < ?t ) . { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?x ) WHERE { ?u rdf:type ontology:cinematic_technique . ?k rdf:type ontology:common_name . ?u property:voice_actor ?k } GROUP BY ?u } }
[]
common name cinematic technique
SYSTEM
24
Q656998 Q2388260 Q21079862 Q27229786 Q562140 Q221679 Q192212 Q23647031 Q908816 Q3623997 Q4096274 Q655133 Q2615381 Q170035 Q2613318 Q223217 Q6739642 Q15709928 Q14545073 Q467678 Q656396 Q187266 Q15975680 Q104905
(c(Q1001378),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q1001378
type Q502895
action count
action filter_type
action find
entity Q15140309
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { resource:Q15140309 property:P725 ?d . ?d rdf:type ontology:Q502895 } } . FILTER ( ?x < ?t ) . { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?x ) WHERE { ?u rdf:type ontology:Q1001378 . ?k rdf:type ontology:Q502895 . ?u property:P725 ?k } GROUP BY ?u } }
Garfield's Pet Force The Humpbacked Horse Cars 3 The Animated Adventures of Tom Sawyer Yobi, the Five Tailed Fox Meet the Robinsons Cars 2 Batman: The Killing Joke The Secret of Kells FernGully 2: The Magical Rescue The Bremen Town Musicians Treasure Island Korgoth of Barbaria Ratatouille Garfield's Fun Fest The Lion King 1½ Making Stars Tríd an Stoirm 1912 film The Little Mermaid II: Return to the Sea Mickey's Magical Christmas: Snowed in at the House of Mouse Toy Story 2 Tamako Love Story WALL•E
24
action count
action less
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
action count
action filter_type
action find
entity Emil & Ida i Lönneberga
relation voice actor
type common name
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { resource:Emil_&_Ida_i_Lönneberga property:voice_actor ?d . ?d rdf:type ontology:common_name } } . FILTER ( ?x < ?t ) . { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?x ) WHERE { ?u rdf:type ontology:cinematic_technique . ?k rdf:type ontology:common_name . ?u property:voice_actor ?k } GROUP BY ?u } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q192212
P725
Q502895 Q1001378
USER
And how about Cars 2?
(c(Q1001378),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q1001378
type Q502895
action count
action filter_type
action find
entity Q192212
relation P725
type Q502895
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { FILTER ( ?v < ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q192212 property:P725 ?o . ?o rdf:type ontology:Q502895 } } . { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?v ) WHERE { ?g property:P725 ?j . ?g rdf:type ontology:Q1001378 . ?j rdf:type ontology:Q502895 } GROUP BY ?g } }
Cars 2
action count
action less
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
action count
action filter_type
action find
entity Cars 2
relation voice actor
type common name
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { FILTER ( ?v < ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Cars_2 property:voice_actor ?o . ?o rdf:type ontology:common_name } } . { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?v ) WHERE { ?g property:voice_actor ?j . ?g rdf:type ontology:cinematic_technique . ?j rdf:type ontology:common_name } GROUP BY ?g } }
[]
common name cinematic technique
SYSTEM
21
Q2388260 Q21079862 Q562140 Q221679 Q23647031 Q908816 Q3623997 Q4096274 Q655133 Q2615381 Q170035 Q2613318 Q223217 Q6739642 Q15709928 Q14545073 Q467678 Q656396 Q187266 Q15975680 Q104905
(c(Q1001378),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q1001378
type Q502895
action count
action filter_type
action find
entity Q192212
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { FILTER ( ?v < ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q192212 property:P725 ?o . ?o rdf:type ontology:Q502895 } } . { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?v ) WHERE { ?g property:P725 ?j . ?g rdf:type ontology:Q1001378 . ?j rdf:type ontology:Q502895 } GROUP BY ?g } }
The Humpbacked Horse Cars 3 Yobi, the Five Tailed Fox Meet the Robinsons Batman: The Killing Joke The Secret of Kells FernGully 2: The Magical Rescue The Bremen Town Musicians Treasure Island Korgoth of Barbaria Ratatouille Garfield's Fun Fest The Lion King 1½ Making Stars Tríd an Stoirm 1912 film The Little Mermaid II: Return to the Sea Mickey's Magical Christmas: Snowed in at the House of Mouse Toy Story 2 Tamako Love Story WALL•E
21
action count
action less
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
action count
action filter_type
action find
entity Cars 2
relation voice actor
type common name
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { FILTER ( ?v < ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Cars_2 property:voice_actor ?o . ?o rdf:type ontology:common_name } } . { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?v ) WHERE { ?g property:voice_actor ?j . ?g rdf:type ontology:cinematic_technique . ?j rdf:type ontology:common_name } GROUP BY ?g } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q207384
P40
Q502895
USER
How many people have Alexander I of Yugoslavia as a child ?
(c(Q502895),P40,Q207384)
action count
action filter_type
action find_reverse
entity Q207384
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q207384']
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:P40 resource:Q207384 . ?i rdf:type ontology:Q502895 }
Alexander I of Yugoslavia
action count
action filter_type
action find_reverse
entity Alexander I of Yugoslavia
relation child
type common name
[{'concept': 'common name'}, 'child', 'Alexander I of Yugoslavia']
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:child resource:Alexander_I_of_Yugoslavia . ?i rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q226738 Q211827
(c(Q502895),P40,Q207384)
action count
action filter_type
action find_reverse
entity Q207384
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q207384']
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:P40 resource:Q207384 . ?i rdf:type ontology:Q502895 }
Princess Zorka of Montenegro Peter I of Serbia
2
action count
action filter_type
action find_reverse
entity Alexander I of Yugoslavia
relation child
type common name
[{'concept': 'common name'}, 'child', 'Alexander I of Yugoslavia']
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:child resource:Alexander_I_of_Yugoslavia . ?i rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q2621015
P40
Q502895
USER
And what about David Chavchavadze?
(c(Q502895),P40,Q2621015)
action count
action filter_type
action find_reverse
entity Q2621015
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q2621015']
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g property:P40 resource:Q2621015 . ?g rdf:type ontology:Q502895 }
David Chavchavadze
action count
action filter_type
action find_reverse
entity David Chavchavadze
relation child
type common name
[{'concept': 'common name'}, 'child', 'David Chavchavadze']
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g property:child resource:David_Chavchavadze . ?g rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q898347
(c(Q502895),P40,Q2621015)
action count
action filter_type
action find_reverse
entity Q2621015
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q2621015']
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g property:P40 resource:Q2621015 . ?g rdf:type ontology:Q502895 }
Princess Nina Georgievna of Russia
1
action count
action filter_type
action find_reverse
entity David Chavchavadze
relation child
type common name
[{'concept': 'common name'}, 'child', 'David Chavchavadze']
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g property:child resource:David_Chavchavadze . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2621015
P19
Q56061
USER
Which administrative territory was that person born at ?
action filter_type
action find
entity Q2621015
relation P19
type Q56061
SELECT DISTINCT ?j WHERE { resource:Q2621015 property:P19 ?j . ?j rdf:type ontology:Q56061 }
David Chavchavadze
action filter_type
action find
entity David Chavchavadze
relation place of birth
type administrative territorial entity
SELECT DISTINCT ?j WHERE { resource:David_Chavchavadze property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
action filter_type
action find
entity Q2621015
relation P19
type Q56061
That person was born in [ANSWER]
SELECT DISTINCT ?j WHERE { resource:Q2621015 property:P19 ?j . ?j rdf:type ontology:Q56061 }
London
That person was born in London
London
action filter_type
action find
entity David Chavchavadze
relation place of birth
type administrative territorial entity
SELECT DISTINCT ?j WHERE { resource:David_Chavchavadze property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7102 Q64380
P47
Q13220204
USER
Which administrative country subdivisions have an adjacent border with Gersau or Hochdorf ?
OR((c(Q13220204),P47,Q64380), (c(Q13220204),P47,Q7102))
action filter_type
action union
action find_reverse
entity Q64380
relation P47
action find_reverse
entity Q7102
relation P47
type Q13220204
{'OR': [[{'concept': 'Q13220204'}, 'P47', 'Q64380'], [{'concept': 'Q13220204'}, 'P47', 'Q7102']]}
SELECT DISTINCT ?x WHERE { { { ?x property:P47 resource:Q64380 } UNION { ?x property:P47 resource:Q7102 } } . ?x rdf:type ontology:Q13220204 }
Hochdorf Gersau
action filter_type
action union
action find_reverse
entity Gersau
relation shares border with
action find_reverse
entity Hochdorf
relation shares border with
type second-level administrative country subdivision
{'OR': [[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Gersau'], [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Hochdorf']]}
SELECT DISTINCT ?x WHERE { { { ?x property:shares_border_with resource:Gersau } UNION { ?x property:shares_border_with resource:Hochdorf } } . ?x rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q69177 Q14578 Q66330 Q7109 Q69140 Q64310 Q7096 Q69742 Q69627 Q64567
SYSTEM
Emmetten, Vitznau, Ingenbohl, Hohenrain, Beckenried, Ennetbürgen, Ballwil, Arth, Lauerz, Buochs
Q69177 Q14578 Q66330 Q7109 Q69140 Q64310 Q7096 Q69742 Q69627 Q64567
OR((c(Q13220204),P47,Q64380), (c(Q13220204),P47,Q7102))
action filter_type
action union
action find_reverse
entity Q64380
relation P47
action find_reverse
entity Q7102
relation P47
type Q13220204
[ANSWERS] have an adjacent border with Gersau or Hochdorf
{'OR': [[{'concept': 'Q13220204'}, 'P47', 'Q64380'], [{'concept': 'Q13220204'}, 'P47', 'Q7102']]}
SELECT DISTINCT ?x WHERE { { { ?x property:P47 resource:Q64380 } UNION { ?x property:P47 resource:Q7102 } } . ?x rdf:type ontology:Q13220204 }
Emmetten Vitznau Ingenbohl Hohenrain Beckenried Ennetbürgen Ballwil Arth Lauerz Buochs
Emmetten, Vitznau, Ingenbohl, Hohenrain, Beckenried, Ennetbürgen, Ballwil, Arth, Lauerz and Buochs have an adjacent border with Gersau or Hochdorf
Emmetten Vitznau Ingenbohl Hohenrain Beckenried Ennetbürgen Ballwil Arth Lauerz Buochs
action filter_type
action union
action find_reverse
entity Gersau
relation shares border with
action find_reverse
entity Hochdorf
relation shares border with
type second-level administrative country subdivision
{'OR': [[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Gersau'], [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Hochdorf']]}
SELECT DISTINCT ?x WHERE { { { ?x property:shares_border_with resource:Gersau } UNION { ?x property:shares_border_with resource:Hochdorf } } . ?x rdf:type ontology:second-level_administrative_country_subdivision }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q20667921 Q515 Q13220204
USER
Which administrative country subdivisions are sister town of atleast 6 french administrative divisions and cities ?
(c(Q13220204),P190,c(Q20667921)|c(Q515))
action atleast
action union
action find_tuple_counts
relation P190
type Q13220204
type Q20667921
action find_tuple_counts
relation P190
type Q13220204
type Q515
value 6
[{'concept': 'Q13220204'}, 'P190', [{'concept': 'Q20667921'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?y ) WHERE { { ?g property:P190 ?o . ?o rdf:type ontology:Q20667921 . ?g rdf:type ontology:Q13220204 } UNION { ?g property:P190 ?o . ?g rdf:type ontology:Q13220204 . ?o rdf:type ontology:Q515 } } GROUP BY ?g } . FILTER ( ?y >= 6 ) }
action atleast
action union
action find_tuple_counts
relation sister city
type second-level administrative country subdivision
type type of french administrative division
action find_tuple_counts
relation sister city
type second-level administrative country subdivision
type city
value 6
[{'concept': 'second-level administrative country subdivision'}, 'sister city', [{'concept': 'type of french administrative division'}, {'concept': 'city'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?y ) WHERE { { ?g property:sister_city ?o . ?o rdf:type ontology:type_of_french_administrative_division . ?g rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?g property:sister_city ?o . ?g rdf:type ontology:second-level_administrative_country_subdivision . ?o rdf:type ontology:city } } GROUP BY ?g } . FILTER ( ?y >= 6 ) }
[]
type of french administrative division city second-level administrative country subdivision
Q25444
SYSTEM
Funchal
Q25444
(c(Q13220204),P190,c(Q20667921)|c(Q515))
action atleast
action union
action find_tuple_counts
relation P190
type Q13220204
type Q20667921
action find_tuple_counts
relation P190
type Q13220204
type Q515
value 6
[ANSWER] is sister town of atleast 6 french administrative divisions and cities
[{'concept': 'Q13220204'}, 'P190', [{'concept': 'Q20667921'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?y ) WHERE { { ?g property:P190 ?o . ?o rdf:type ontology:Q20667921 . ?g rdf:type ontology:Q13220204 } UNION { ?g property:P190 ?o . ?g rdf:type ontology:Q13220204 . ?o rdf:type ontology:Q515 } } GROUP BY ?g } . FILTER ( ?y >= 6 ) }
Funchal
Funchal is sister town of atleast 6 french administrative divisions and cities
Funchal
action atleast
action union
action find_tuple_counts
relation sister city
type second-level administrative country subdivision
type type of french administrative division
action find_tuple_counts
relation sister city
type second-level administrative country subdivision
type city
value 6
[{'concept': 'second-level administrative country subdivision'}, 'sister city', [{'concept': 'type of french administrative division'}, {'concept': 'city'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?y ) WHERE { { ?g property:sister_city ?o . ?o rdf:type ontology:type_of_french_administrative_division . ?g rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?g property:sister_city ?o . ?g rdf:type ontology:second-level_administrative_country_subdivision . ?o rdf:type ontology:city } } GROUP BY ?g } . FILTER ( ?y >= 6 ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q25444 Q1410 Q1015409
P190
Q515
USER
Is that administrative country subdivision sister town of Gibraltar and Bílovec ?
(Q25444,P190,Q1410) (Q25444,P190,Q1015409)
action is_in
entity Q25444
action intersection
action find_reverse
entity Q1410
relation P190
action find_reverse
entity Q1015409
relation P190
['Q25444', 'P190', 'Q1410'] ['Q25444', 'P190', 'Q1015409']
ASK WHERE { resource:Q25444 property:P190 resource:Q1410 . resource:Q25444 property:P190 resource:Q1015409 }
Funchal Gibraltar Bílovec
action is_in
entity Funchal
action intersection
action find_reverse
entity Gibraltar
relation sister city
action find_reverse
entity Bílovec
relation sister city
['Funchal', 'sister city', 'Gibraltar'] ['Funchal', 'sister city', 'Bílovec']
ASK WHERE { resource:Funchal property:sister_city resource:Gibraltar . resource:Funchal property:sister_city resource:Bílovec }
[]
city
SYSTEM
YES and NO respectively
(Q25444,P190,Q1410) (Q25444,P190,Q1015409)
action is_in
entity Q25444
action intersection
action find_reverse
entity Q1410
relation P190
action find_reverse
entity Q1015409
relation P190
[ANSWER]
['Q25444', 'P190', 'Q1410'] ['Q25444', 'P190', 'Q1015409']
ASK WHERE { resource:Q25444 property:P190 resource:Q1410 . resource:Q25444 property:P190 resource:Q1015409 }
YES and NO respectively
action is_in
entity Funchal
action intersection
action find_reverse
entity Gibraltar
relation sister city
action find_reverse
entity Bílovec
relation sister city
['Funchal', 'sister city', 'Gibraltar'] ['Funchal', 'sister city', 'Bílovec']
ASK WHERE { resource:Funchal property:sister_city resource:Gibraltar . resource:Funchal property:sister_city resource:Bílovec }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q7096 Q39 Q670770
P17
Q15617994
USER
Is Ballwil present in Switzerland and Gols (town) ?
(Q7096,P17,Q39) (Q7096,P17,Q670770)
action is_in
entity Q7096
action intersection
action find_reverse
entity Q39
relation P17
action find_reverse
entity Q670770
relation P17
['Q7096', 'P17', 'Q39'] ['Q7096', 'P17', 'Q670770']
ASK WHERE { resource:Q7096 property:P17 resource:Q39 . resource:Q7096 property:P17 resource:Q670770 }
Ballwil Switzerland Gols (town)
action is_in
entity Ballwil
action intersection
action find_reverse
entity Switzerland
relation country
action find_reverse
entity Gols (town)
relation country
['Ballwil', 'country', 'Switzerland'] ['Ballwil', 'country', 'Gols (town)']
ASK WHERE { resource:Ballwil property:country resource:Switzerland . resource:Ballwil property:country resource:Gols_(town) }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q7096,P17,Q39) (Q7096,P17,Q670770)
action is_in
entity Q7096
action intersection
action find_reverse
entity Q39
relation P17
action find_reverse
entity Q670770
relation P17
[ANSWER]
['Q7096', 'P17', 'Q39'] ['Q7096', 'P17', 'Q670770']
ASK WHERE { resource:Q7096 property:P17 resource:Q39 . resource:Q7096 property:P17 resource:Q670770 }
YES and NO respectively
action is_in
entity Ballwil
action intersection
action find_reverse
entity Switzerland
relation country
action find_reverse
entity Gols (town)
relation country
['Ballwil', 'country', 'Switzerland'] ['Ballwil', 'country', 'Gols (town)']
ASK WHERE { resource:Ballwil property:country resource:Switzerland . resource:Ballwil property:country resource:Gols_(town) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q64567
P47
Q13220204
USER
How many administrative country subdivisions have a shared border with Buochs ?
(Q64567,P47,c(Q13220204))
action count
action filter_type
action find
entity Q64567
relation P47
type Q13220204
['Q64567', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { resource:Q64567 property:P47 ?h . ?h rdf:type ontology:Q13220204 }
Buochs
action count
action filter_type
action find
entity Buochs
relation shares border with
type second-level administrative country subdivision
['Buochs', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { resource:Buochs property:shares_border_with ?h . ?h rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
SYSTEM
4
Q67154 Q69140 Q64310 Q64380
(Q64567,P47,c(Q13220204))
action count
action filter_type
action find
entity Q64567
relation P47
type Q13220204
[ANSWER]
['Q64567', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { resource:Q64567 property:P47 ?h . ?h rdf:type ontology:Q13220204 }
Oberdorf Beckenried Ennetbürgen Gersau
4
action count
action filter_type
action find
entity Buochs
relation shares border with
type second-level administrative country subdivision
['Buochs', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { resource:Buochs property:shares_border_with ?h . ?h rdf:type ontology:second-level_administrative_country_subdivision }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q2777887
P47
Q13220204
USER
And how about Årjäng Municipality?
(Q2777887,P47,c(Q13220204))
action count
action filter_type
action find
entity Q2777887
relation P47
type Q13220204
['Q2777887', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i rdf:type ontology:Q13220204 . resource:Q2777887 property:P47 ?i }
Årjäng Municipality
action count
action filter_type
action find
entity Årjäng Municipality
relation shares border with
type second-level administrative country subdivision
['Årjäng Municipality', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i rdf:type ontology:second-level_administrative_country_subdivision . resource:Årjäng_Municipality property:shares_border_with ?i }
[]
second-level administrative country subdivision
SYSTEM
3
Q486736 Q48393 Q113622
(Q2777887,P47,c(Q13220204))
action count
action filter_type
action find
entity Q2777887
relation P47
type Q13220204
[ANSWER]
['Q2777887', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i rdf:type ontology:Q13220204 . resource:Q2777887 property:P47 ?i }
Marker Aremark Rømskog
3
action count
action filter_type
action find
entity Årjäng Municipality
relation shares border with
type second-level administrative country subdivision
['Årjäng Municipality', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i rdf:type ontology:second-level_administrative_country_subdivision . resource:Årjäng_Municipality property:shares_border_with ?i }
[]