Simple Question (Direct)
Simple Question
Q98455
P19
Q15617994
USER
Which administrative territory is the birthplace of Friedrich Ferdinand Flemming ?
(Q98455,P19,c(Q15617994))
action filter_type
action find
entity Q98455
relation P19
type Q15617994
['Q98455', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q98455 property:P19 ?d . ?d rdf:type ontology:Q15617994 }
Friedrich Ferdinand Flemming
action filter_type
action find
entity Friedrich Ferdinand Flemming
relation place of birth
type designation for an administrative territorial entity
['Friedrich Ferdinand Flemming', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Friedrich_Ferdinand_Flemming property:place_of_birth ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q71012
SYSTEM
Neuhausen
Q71012
(Q98455,P19,c(Q15617994))
action filter_type
action find
entity Q98455
relation P19
type Q15617994
In [ANSWER] is the birthplace of Friedrich Ferdinand Flemming
['Q98455', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q98455 property:P19 ?d . ?d rdf:type ontology:Q15617994 }
Neuhausen
In Neuhausen is the birthplace of Friedrich Ferdinand Flemming
Neuhausen
action filter_type
action find
entity Friedrich Ferdinand Flemming
relation place of birth
type designation for an administrative territorial entity
['Friedrich Ferdinand Flemming', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Friedrich_Ferdinand_Flemming property:place_of_birth ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q71012
P47
Q486972
USER
Which human settlement is bordered by that administrative territory ?
(c(Q486972),P47,Q71012)
action filter_type
action find_reverse
entity Q71012
relation P47
type Q486972
[{'concept': 'Q486972'}, 'P47', 'Q71012']
SELECT DISTINCT ?p WHERE { ?p property:P47 resource:Q71012 . ?p rdf:type ontology:Q486972 }
Neuhausen
action filter_type
action find_reverse
entity Neuhausen
relation shares border with
type human settlement
[{'concept': 'human settlement'}, 'shares border with', 'Neuhausen']
SELECT DISTINCT ?p WHERE { ?p property:shares_border_with resource:Neuhausen . ?p rdf:type ontology:human_settlement }
[]
human settlement
Q1307281
SYSTEM
Heidelberg
Q1307281
(c(Q486972),P47,Q71012)
action filter_type
action find_reverse
entity Q71012
relation P47
type Q486972
[ANSWER] is bordered by that administrative territory
[{'concept': 'Q486972'}, 'P47', 'Q71012']
SELECT DISTINCT ?p WHERE { ?p property:P47 resource:Q71012 . ?p rdf:type ontology:Q486972 }
Heidelberg
Heidelberg is bordered by that administrative territory
Heidelberg
action filter_type
action find_reverse
entity Neuhausen
relation shares border with
type human settlement
[{'concept': 'human settlement'}, 'shares border with', 'Neuhausen']
SELECT DISTINCT ?p WHERE { ?p property:shares_border_with resource:Neuhausen . ?p rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q71012
P190
Q15617994
USER
Which administrative territory is twin city of Neuhausen ?
(c(Q15617994),P190,Q71012)
action filter_type
action find
entity Q71012
relation P190
type Q15617994
[{'concept': 'Q15617994'}, 'P190', 'Q71012']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q71012 property:P190 ?s }
Neuhausen
action filter_type
action find
entity Neuhausen
relation sister city
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Neuhausen']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Neuhausen property:sister_city ?s }
[]
designation for an administrative territorial entity
Q61647
SYSTEM
Affalterbach
Q61647
(c(Q15617994),P190,Q71012)
action filter_type
action find
entity Q71012
relation P190
type Q15617994
[ANSWER] is twin city of Neuhausen
[{'concept': 'Q15617994'}, 'P190', 'Q71012']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q71012 property:P190 ?s }
Affalterbach
Affalterbach is twin city of Neuhausen
Affalterbach
action filter_type
action find
entity Neuhausen
relation sister city
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Neuhausen']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Neuhausen property:sister_city ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q61647
P17
Q1048835
USER
Which political territory is that administrative territory located in ?
(Q61647,P17,c(Q1048835))
action filter_type
action find
entity Q61647
relation P17
type Q1048835
['Q61647', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . resource:Q61647 property:P17 ?k }
Affalterbach
action filter_type
action find
entity Affalterbach
relation country
type political territorial entity
['Affalterbach', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Affalterbach property:country ?k }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q61647,P17,c(Q1048835))
action filter_type
action find
entity Q61647
relation P17
type Q1048835
That administrative territory is located in [ANSWER]
['Q61647', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . resource:Q61647 property:P17 ?k }
Germany
That administrative territory is located in Germany
Germany
action filter_type
action find
entity Affalterbach
relation country
type political territorial entity
['Affalterbach', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Affalterbach property:country ?k }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q691
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relations with greater number of political territories than Papua New Guinea ?
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?k ) WHERE { ?g property:P530 ?b . ?g rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q1048835 } GROUP BY ?g } . FILTER ( ?k > ?p ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Q691 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } }
Papua New Guinea
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?k ) WHERE { ?g property:diplomatic_relation ?b . ?g rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?g } . FILTER ( ?k > ?p ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
SYSTEM
6
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?k ) WHERE { ?g property:P530 ?b . ?g rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q1048835 } GROUP BY ?g } . FILTER ( ?k > ?p ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Q691 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } }
Austria Germany Australia Denmark Canada New Zealand
6
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?k ) WHERE { ?g property:diplomatic_relation ?b . ?g rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?g } . FILTER ( ?k > ?p ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q40
P530
Q1048835 Q1048835
USER
Which political territories have ambassadorial relations with less number of political territories than Austria ?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?l ) WHERE { ?m property:P530 ?v . ?m rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Q40 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?l < ?t ) }
Austria
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?l ) WHERE { ?m property:diplomatic_relation ?v . ?m rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Austria property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?l < ?t ) }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWERS] have ambassadorial relations with less number of political territories than Austria
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?l ) WHERE { ?m property:P530 ?v . ?m rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Q40 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?l < ?t ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have ambassadorial relations with less number of political territories than Austria
Gabon Grenada Papua New Guinea
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?l ) WHERE { ?m property:diplomatic_relation ?v . ?m rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Austria property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?l < ?t ) }
[]