Simple Question (Direct)
Simple Question
Q1079582
P19
Q486972
USER
Which human settlement is the place of birth of Christian Friedrich Eichhorn ?
(Q1079582,P19,c(Q486972))
action filter_type
action find
entity Q1079582
relation P19
type Q486972
['Q1079582', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { resource:Q1079582 property:P19 ?d . ?d rdf:type ontology:Q486972 }
Christian Friedrich Eichhorn
action filter_type
action find
entity Christian Friedrich Eichhorn
relation place of birth
type human settlement
['Christian Friedrich Eichhorn', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { resource:Christian_Friedrich_Eichhorn property:place_of_birth ?d . ?d rdf:type ontology:human_settlement }
[]
human settlement
Q2916
SYSTEM
Osnabrück
Q2916
(Q1079582,P19,c(Q486972))
action filter_type
action find
entity Q1079582
relation P19
type Q486972
[ANSWER] is the place of birth of Christian Friedrich Eichhorn
['Q1079582', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { resource:Q1079582 property:P19 ?d . ?d rdf:type ontology:Q486972 }
Osnabrück
Osnabrück is the place of birth of Christian Friedrich Eichhorn
Osnabrück
action filter_type
action find
entity Christian Friedrich Eichhorn
relation place of birth
type human settlement
['Christian Friedrich Eichhorn', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { resource:Christian_Friedrich_Eichhorn property:place_of_birth ?d . ?d rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2916
P47
Q1048835
USER
Which political territory shares border with that human settlement ?
(Q2916,P47,c(Q1048835))
action filter_type
action find
entity Q2916
relation P47
type Q1048835
['Q2916', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q2916 property:P47 ?j . ?j rdf:type ontology:Q1048835 }
Osnabrück
action filter_type
action find
entity Osnabrück
relation shares border with
type political territorial entity
['Osnabrück', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Osnabrück property:shares_border_with ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q5940
SYSTEM
Osnabrück
Q5940
(Q2916,P47,c(Q1048835))
action filter_type
action find
entity Q2916
relation P47
type Q1048835
[ANSWER] shares border with that human settlement
['Q2916', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q2916 property:P47 ?j . ?j rdf:type ontology:Q1048835 }
Osnabrück
Osnabrück shares border with that human settlement
Osnabrück
action filter_type
action find
entity Osnabrück
relation shares border with
type political territorial entity
['Osnabrück', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Osnabrück property:shares_border_with ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q40
P530
Q1048835 Q1048835
USER
Which political territories have tactful political relations with more number of political territories than Austria ?
(c(Q1048835),P530,c(Q1048835))
action greater
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 ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?o ) WHERE { ?k property:P530 ?i . ?k rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1048835 } GROUP BY ?k } . FILTER ( ?o > ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:Q40 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } }
Austria
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 Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?o ) WHERE { ?k property:diplomatic_relation ?i . ?k rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?k } . FILTER ( ?o > ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:Austria property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action greater
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 tactful political relations with more number of political territories than Austria
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?o ) WHERE { ?k property:P530 ?i . ?k rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1048835 } GROUP BY ?k } . FILTER ( ?o > ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:Q40 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } }
Germany Australia Denmark Canada New Zealand
Germany, Australia and Denmark have tactful political relations with more number of political territories than Austria
Germany Australia Denmark
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 Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?o ) WHERE { ?k property:diplomatic_relation ?i . ?k rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?k } . FILTER ( ?o > ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:Austria property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q39
P530
Q15617994
USER
How many administrative territories have diplomatic relations with Germany and Switzerland ?
(Q183,P530,c(Q15617994)) (Q39,P530,c(Q15617994))
action count
action intersection
action filter_type
action find
entity Q183
relation P530
type Q15617994
action filter_type
action find
entity Q39
relation P530
type Q15617994
['Q183', 'P530', {'concept': 'Q15617994'}] ['Q39', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:Q15617994 . resource:Q183 property:P530 ?z . resource:Q39 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Germany Switzerland
action count
action intersection
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Switzerland
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Switzerland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Germany property:diplomatic_relation ?z . resource:Switzerland property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
3
Q38 Q252 Q347
(Q183,P530,c(Q15617994)) (Q39,P530,c(Q15617994))
action count
action intersection
action filter_type
action find
entity Q183
relation P530
type Q15617994
action filter_type
action find
entity Q39
relation P530
type Q15617994
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}] ['Q39', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:Q15617994 . resource:Q183 property:P530 ?z . resource:Q39 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Italy Indonesia Liechtenstein
3
action count
action intersection
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Switzerland
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Switzerland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Germany property:diplomatic_relation ?z . resource:Switzerland property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]