Simple Question (Direct)
Simple Question
Q875306
P166
Q618779
USER
What was awarded to Carlo Mense ?
(Q875306,P166,c(Q618779))
action filter_type
action find
entity Q875306
relation P166
type Q618779
['Q875306', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q875306 property:P166 ?j . ?j rdf:type ontology:Q618779 }
Carlo Mense
action filter_type
action find
entity Carlo Mense
relation award received
type award
['Carlo Mense', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Carlo_Mense property:award_received ?j . ?j rdf:type ontology:award }
[]
award
Q21164
SYSTEM
Order of Merit of the Federal Republic of Germany
Q21164
(Q875306,P166,c(Q618779))
action filter_type
action find
entity Q875306
relation P166
type Q618779
Germany [ANSWER] was awarded to Carlo Mense
['Q875306', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q875306 property:P166 ?j . ?j rdf:type ontology:Q618779 }
Order of Merit of the Federal Republic of Germany
Germany Order of Merit of the Federal Republic of Germany was awarded to Carlo Mense
Order of Merit of the Federal Republic of Germany
action filter_type
action find
entity Carlo Mense
relation award received
type award
['Carlo Mense', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Carlo_Mense property:award_received ?j . ?j rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q875306
P27
Q1048835
USER
Which political territory is Carlo Mense an inhabitant of ?
(Q875306,P27,c(Q1048835))
action filter_type
action find
entity Q875306
relation P27
type Q1048835
['Q875306', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q875306 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Carlo Mense
action filter_type
action find
entity Carlo Mense
relation country of citizenship
type political territorial entity
['Carlo Mense', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Carlo_Mense property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q875306,P27,c(Q1048835))
action filter_type
action find
entity Q875306
relation P27
type Q1048835
[ANSWER] is Carlo Mense an inhabitant of
['Q875306', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q875306 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Germany
Germany is Carlo Mense an inhabitant of
Germany
action filter_type
action find
entity Carlo Mense
relation country of citizenship
type political territorial entity
['Carlo Mense', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Carlo_Mense property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1618039
Q1048835
USER
And what about Johannes Casell?
(Q1618039,P27,c(Q1048835))
action filter_type
action find
entity Q1618039
relation P27
type Q1048835
['Q1618039', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q1618039 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Johannes Casell
action filter_type
action find
entity Johannes Casell
relation country of citizenship
type political territorial entity
['Johannes Casell', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Johannes_Casell property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1618039,P27,c(Q1048835))
action filter_type
action find
entity Q1618039
relation P27
type Q1048835
[ANSWER]
['Q1618039', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q1618039 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action find
entity Johannes Casell
relation country of citizenship
type political territorial entity
['Johannes Casell', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Johannes_Casell property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have ambassadorial relations with around 10 political territories ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 10
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?x ) WHERE { ?g property:P530 ?y . ?g rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } GROUP BY ?g } . FILTER ( ?x = 10 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 10
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?x ) WHERE { ?g property:diplomatic_relation ?y . ?g rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?g } . FILTER ( ?x = 10 ) }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 10
[ANSWER] have ambassadorial relations with around 10 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?x ) WHERE { ?g property:P530 ?y . ?g rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } GROUP BY ?g } . FILTER ( ?x = 10 ) }
Australia
Australia have ambassadorial relations with around 10 political territories
Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 10
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?x ) WHERE { ?g property:diplomatic_relation ?y . ?g rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?g } . FILTER ( ?x = 10 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with around 2 political territories ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?l ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?s } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?l ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
political territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[ANSWERS] have diplomatic relations with around 2 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?l ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?s } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relations with around 2 political territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?l ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q159
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with greater number of political territories than Russia ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q159
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { resource:Q159 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?f > ?h ) . { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?f ) WHERE { ?v property:P530 ?g . ?v rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?v } }
Russia
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Russia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { resource:Russia property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?f > ?h ) . { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?f ) WHERE { ?v property:diplomatic_relation ?g . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?v } }
[]
designation for an administrative territorial entity political territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q159
relation P530
type Q1048835
[ANSWERS] have a diplomatic relationship with greater number of political territories than Russia
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { resource:Q159 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?f > ?h ) . { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?f ) WHERE { ?v property:P530 ?g . ?v rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?v } }
Brazil Italy
Brazil and Italy have a diplomatic relationship with greater number of political territories than Russia
Brazil Italy
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Russia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { resource:Russia property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?f > ?h ) . { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?f ) WHERE { ?v property:diplomatic_relation ?g . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?v } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q46833
P530
Q15617994
USER
Do Albettone have ambassadorial relations with those ones ?
(Q46833,P530,Q155) (Q46833,P530,Q38)
action is_in
entity prev_answer
action find
entity Q46833
relation P530
['Q46833', 'P530', 'Q155'] ['Q46833', 'P530', 'Q38']
ASK WHERE { resource:Q46833 property:P530 ?k . VALUES ( ?k ) { ( resource:Q155 ) ( resource:Q38 ) } }
Albettone
action is_in
entity prev_answer
action find
entity Albettone
relation diplomatic relation
['Albettone', 'diplomatic relation', 'Brazil'] ['Albettone', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Albettone property:diplomatic_relation ?k . VALUES ( ?k ) { ( resource:Brazil ) ( resource:Italy ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q46833,P530,Q155) (Q46833,P530,Q38)
action is_in
entity prev_answer
action find
entity Q46833
relation P530
[ANSWER]
['Q46833', 'P530', 'Q155'] ['Q46833', 'P530', 'Q38']
ASK WHERE { resource:Q46833 property:P530 ?k . VALUES ( ?k ) { ( resource:Q155 ) ( resource:Q38 ) } }
No
action is_in
entity prev_answer
action find
entity Albettone
relation diplomatic relation
['Albettone', 'diplomatic relation', 'Brazil'] ['Albettone', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Albettone property:diplomatic_relation ?k . VALUES ( ?k ) { ( resource:Brazil ) ( resource:Italy ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q40 Q183
P47
Q1048835
USER
Does Germany share border with Austria ?
(Q40,P47,Q183)
action is_in
entity Q183
action find
entity Q40
relation P47
['Q40', 'P47', 'Q183']
ASK WHERE { resource:Q40 property:P47 resource:Q183 }
Austria Germany
action is_in
entity Germany
action find
entity Austria
relation shares border with
['Austria', 'shares border with', 'Germany']
ASK WHERE { resource:Austria property:shares_border_with resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q40,P47,Q183)
action is_in
entity Q183
action find
entity Q40
relation P47
[ANSWER]
['Q40', 'P47', 'Q183']
ASK WHERE { resource:Q40 property:P47 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Austria
relation shares border with
['Austria', 'shares border with', 'Germany']
ASK WHERE { resource:Austria property:shares_border_with resource:Germany }
[]