Simple Question (Direct)
Simple Question
Q6118591
P21
Q290
USER
What is the sex of Jacob Erskine ?
(Q6118591,P21,c(Q290))
action filter_type
action find
entity Q6118591
relation P21
type Q290
['Q6118591', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q6118591 property:P21 ?r . ?r rdf:type ontology:Q290 }
Jacob Erskine
action filter_type
action find
entity Jacob Erskine
relation gender
type sex
['Jacob Erskine', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Jacob_Erskine property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6118591,P21,c(Q290))
action filter_type
action find
entity Q6118591
relation P21
type Q290
The sex of Jacob Erskine is the [ANSWER]
['Q6118591', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q6118591 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
The sex of Jacob Erskine is the male
male
action filter_type
action find
entity Jacob Erskine
relation gender
type sex
['Jacob Erskine', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Jacob_Erskine property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6118591
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q6118591
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q6118591 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Jacob Erskine
action filter_type
action find
entity Jacob Erskine
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Jacob_Erskine property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q6118591
relation P106
type Q12737077
Player [ANSWER] has that person as his/her 's career
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q6118591 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
association football player
Player association football player has that person as his/her 's career
association football player
action filter_type
action find
entity Jacob Erskine
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Jacob_Erskine property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1297514 Q6118591
P106
Q12737077
USER
Or Alexander Müller-Elmau?
OR((Q6118591,P106,c(Q12737077)), (Q1297514,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6118591
relation P106
action find
entity Q1297514
relation P106
type Q12737077
{'OR': [['Q6118591', 'P106', {'concept': 'Q12737077'}], ['Q1297514', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { ?h property:P106 ?i . VALUES ( ?h ) { ( resource:Q6118591 ) ( resource:Q1297514 ) } } . ?i rdf:type ontology:Q12737077 }
Alexander Müller-Elmau Jacob Erskine
action filter_type
action union
action find
entity Jacob Erskine
relation occupation
action find
entity Alexander Müller-Elmau
relation occupation
type occupation
{'OR': [['Jacob Erskine', 'occupation', {'concept': 'occupation'}], ['Alexander Müller-Elmau', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { ?h property:occupation ?i . VALUES ( ?h ) { ( resource:Jacob_Erskine ) ( resource:Alexander_Müller-Elmau ) } } . ?i rdf:type ontology:occupation }
[]
occupation
Q3455803 Q937857
SYSTEM
director, association football player
Q3455803 Q937857
OR((Q6118591,P106,c(Q12737077)), (Q1297514,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6118591
relation P106
action find
entity Q1297514
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q6118591', 'P106', {'concept': 'Q12737077'}], ['Q1297514', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { ?h property:P106 ?i . VALUES ( ?h ) { ( resource:Q6118591 ) ( resource:Q1297514 ) } } . ?i rdf:type ontology:Q12737077 }
director association football player
director association football player
action filter_type
action union
action find
entity Jacob Erskine
relation occupation
action find
entity Alexander Müller-Elmau
relation occupation
type occupation
{'OR': [['Jacob Erskine', 'occupation', {'concept': 'occupation'}], ['Alexander Müller-Elmau', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { ?h property:occupation ?i . VALUES ( ?h ) { ( resource:Jacob_Erskine ) ( resource:Alexander_Müller-Elmau ) } } . ?i rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2252580 Q6118591
P27 P17
Q15617994
USER
Which administrative territories are Jacob Erskine a civilian of and are Hither Green located in ?
AND((Q6118591,P27,c(Q15617994)), (Q2252580,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q6118591
relation P27
action find
entity Q2252580
relation P17
type Q15617994
{'AND': [['Q6118591', 'P27', {'concept': 'Q15617994'}], ['Q2252580', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q6118591 property:P27 ?l . resource:Q2252580 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Hither Green Jacob Erskine
action filter_type
action intersection
action find
entity Jacob Erskine
relation country of citizenship
action find
entity Hither Green
relation country
type designation for an administrative territorial entity
{'AND': [['Jacob Erskine', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hither Green', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Jacob_Erskine property:country_of_citizenship ?l . resource:Hither_Green property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
AND((Q6118591,P27,c(Q15617994)), (Q2252580,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q6118591
relation P27
action find
entity Q2252580
relation P17
type Q15617994
Which administrative territories is Jacob Erskine a civilian of and is Hither Green located in
{'AND': [['Q6118591', 'P27', {'concept': 'Q15617994'}], ['Q2252580', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q6118591 property:P27 ?l . resource:Q2252580 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
United Kingdom
Which administrative territories is Jacob Erskine a civilian of and is Hither Green located in
United Kingdom
action filter_type
action intersection
action find
entity Jacob Erskine
relation country of citizenship
action find
entity Hither Green
relation country
type designation for an administrative territorial entity
{'AND': [['Jacob Erskine', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hither Green', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Jacob_Erskine property:country_of_citizenship ?l . resource:Hither_Green property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q145
P706
Q107425 Q271669
USER
How many landscapes and landforms are United Kingdom located on ?
(Q145,P706,c(Q107425)) (Q145,P706,c(Q271669))
action count
action union
action filter_type
action find
entity Q145
relation P706
type Q107425
action filter_type
action find
entity Q145
relation P706
type Q271669
['Q145', 'P706', {'concept': 'Q107425'}] ['Q145', 'P706', {'concept': 'Q271669'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { resource:Q145 property:P706 ?n . ?n rdf:type ontology:Q107425 } UNION { resource:Q145 property:P706 ?n . ?n rdf:type ontology:Q271669 } }
United Kingdom
action count
action union
action filter_type
action find
entity United Kingdom
relation located on terrain feature
type landscape
action filter_type
action find
entity United Kingdom
relation located on terrain feature
type landform
['United Kingdom', 'located on terrain feature', {'concept': 'landscape'}] ['United Kingdom', 'located on terrain feature', {'concept': 'landform'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { resource:United_Kingdom property:located_on_terrain_feature ?n . ?n rdf:type ontology:landscape } UNION { resource:United_Kingdom property:located_on_terrain_feature ?n . ?n rdf:type ontology:landform } }
[]
landscape landform
SYSTEM
1 landscapes and 2 landforms
Q23666 Q22890 Q38272
(Q145,P706,c(Q107425)) (Q145,P706,c(Q271669))
action count
action union
action filter_type
action find
entity Q145
relation P706
type Q107425
action filter_type
action find
entity Q145
relation P706
type Q271669
[ANSWER]
['Q145', 'P706', {'concept': 'Q107425'}] ['Q145', 'P706', {'concept': 'Q271669'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { resource:Q145 property:P706 ?n . ?n rdf:type ontology:Q107425 } UNION { resource:Q145 property:P706 ?n . ?n rdf:type ontology:Q271669 } }
Great Britain Ireland British Isles
1 landscapes and 2 landforms
action count
action union
action filter_type
action find
entity United Kingdom
relation located on terrain feature
type landscape
action filter_type
action find
entity United Kingdom
relation located on terrain feature
type landform
['United Kingdom', 'located on terrain feature', {'concept': 'landscape'}] ['United Kingdom', 'located on terrain feature', {'concept': 'landform'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { resource:United_Kingdom property:located_on_terrain_feature ?n . ?n rdf:type ontology:landscape } UNION { resource:United_Kingdom property:located_on_terrain_feature ?n . ?n rdf:type ontology:landform } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with approximately 120 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 120
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?c = 120 ) . { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?c ) WHERE { ?b rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?b property:P530 ?p } GROUP BY ?b } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 120
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?c = 120 ) . { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?c ) WHERE { ?b rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?p } GROUP BY ?b } }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 120
[ANSWERS] have diplomatic relations with approximately 120 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?c = 120 ) . { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?c ) WHERE { ?b rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?b property:P530 ?p } GROUP BY ?b } }
Germany Australia
Germany and Australia have diplomatic relations with approximately 120 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 120
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?c = 120 ) . { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?c ) WHERE { ?b rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?p } GROUP BY ?b } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q403
P530
Q15617994
USER
Do Serbia have ambassadorial relations with those political territories ?
(Q403,P530,Q183) (Q403,P530,Q408)
action is_in
entity prev_answer
action find
entity Q403
relation P530
['Q403', 'P530', 'Q183'] ['Q403', 'P530', 'Q408']
ASK WHERE { resource:Q403 property:P530 ?r . VALUES ( ?r ) { ( resource:Q183 ) ( resource:Q408 ) } }
Serbia
action is_in
entity prev_answer
action find
entity Serbia
relation diplomatic relation
['Serbia', 'diplomatic relation', 'Germany'] ['Serbia', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Serbia property:diplomatic_relation ?r . VALUES ( ?r ) { ( resource:Germany ) ( resource:Australia ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q403,P530,Q183) (Q403,P530,Q408)
action is_in
entity prev_answer
action find
entity Q403
relation P530
[ANSWER]
['Q403', 'P530', 'Q183'] ['Q403', 'P530', 'Q408']
ASK WHERE { resource:Q403 property:P530 ?r . VALUES ( ?r ) { ( resource:Q183 ) ( resource:Q408 ) } }
Yes
action is_in
entity prev_answer
action find
entity Serbia
relation diplomatic relation
['Serbia', 'diplomatic relation', 'Germany'] ['Serbia', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Serbia property:diplomatic_relation ?r . VALUES ( ?r ) { ( resource:Germany ) ( resource:Australia ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q183 Q265 Q4917486
P530
Q15617994
USER
Is Germany known to have diplomatic connections with Uzbekistan and Bishop Arts District, Dallas ?
(Q183,P530,Q265) (Q183,P530,Q4917486)
action is_in
entity Q183
action intersection
action find_reverse
entity Q265
relation P530
action find_reverse
entity Q4917486
relation P530
['Q183', 'P530', 'Q265'] ['Q183', 'P530', 'Q4917486']
ASK WHERE { resource:Q183 property:P530 resource:Q4917486 . resource:Q183 property:P530 resource:Q265 }
Germany Uzbekistan Bishop Arts District, Dallas
action is_in
entity Germany
action intersection
action find_reverse
entity Uzbekistan
relation diplomatic relation
action find_reverse
entity Bishop Arts District, Dallas
relation diplomatic relation
['Germany', 'diplomatic relation', 'Uzbekistan'] ['Germany', 'diplomatic relation', 'Bishop Arts District, Dallas']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Bishop_Arts_District,_Dallas . resource:Germany property:diplomatic_relation resource:Uzbekistan }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q183,P530,Q265) (Q183,P530,Q4917486)
action is_in
entity Q183
action intersection
action find_reverse
entity Q265
relation P530
action find_reverse
entity Q4917486
relation P530
[ANSWER]
['Q183', 'P530', 'Q265'] ['Q183', 'P530', 'Q4917486']
ASK WHERE { resource:Q183 property:P530 resource:Q4917486 . resource:Q183 property:P530 resource:Q265 }
YES and NO respectively
action is_in
entity Germany
action intersection
action find_reverse
entity Uzbekistan
relation diplomatic relation
action find_reverse
entity Bishop Arts District, Dallas
relation diplomatic relation
['Germany', 'diplomatic relation', 'Uzbekistan'] ['Germany', 'diplomatic relation', 'Bishop Arts District, Dallas']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Bishop_Arts_District,_Dallas . resource:Germany property:diplomatic_relation resource:Uzbekistan }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many administrative territories have diplomatic relations with atleast 3 political territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?q ) WHERE { ?n property:P530 ?h . ?h rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?q >= 3 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?q ) WHERE { ?n property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?q >= 3 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
37
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q889 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q230 Q20 Q27 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?q ) WHERE { ?n property:P530 ?h . ?h rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?q >= 3 ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil Afghanistan South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Georgia Norway Ireland Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
37
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?q ) WHERE { ?n property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?q >= 3 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q35
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with lesser number of political territories than Denmark ?
(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 Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?c } } . FILTER ( ?x < ?f ) . { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?n property:P530 ?d . ?n rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?n } }
Denmark
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 Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?c } } . FILTER ( ?x < ?f ) . { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?n property:diplomatic_relation ?d . ?n rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?n } }
[]
political territorial entity political territorial entity
Q40 Q1000 Q769
SYSTEM
Austria, Gabon, Grenada
Q1000 Q40 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 Q35
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with lesser number of political territories than Denmark
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?c } } . FILTER ( ?x < ?f ) . { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?n property:P530 ?d . ?n rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?n } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Austria, Gabon and Grenada have diplomatic relationships with lesser number of political territories than Denmark
Austria Gabon Grenada
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 Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?c } } . FILTER ( ?x < ?f ) . { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?n property:diplomatic_relation ?d . ?n rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?n } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q16
P530
Q1048835 Q1048835
USER
And what about Canada?
(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 Q16
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?a ) WHERE { ?i property:P530 ?o . ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { ?f rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?f } } . FILTER ( ?a < ?c ) }
Canada
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 Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?a ) WHERE { ?i property:diplomatic_relation ?o . ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?f } } . FILTER ( ?a < ?c ) }
[]
political territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 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 Q16
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?a ) WHERE { ?i property:P530 ?o . ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { ?f rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?f } } . FILTER ( ?a < ?c ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark Austria New Zealand
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 Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?a ) WHERE { ?i property:diplomatic_relation ?o . ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?f } } . FILTER ( ?a < ?c ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1768955
P530
Q1048835
USER
Do Muga de Sayago have ambassadorial relations with those ones ?
(Q1768955,P530,Q35) (Q1768955,P530,Q40) (Q1768955,P530,Q664)
action is_in
entity prev_answer
action find
entity Q1768955
relation P530
['Q1768955', 'P530', 'Q35'] ['Q1768955', 'P530', 'Q40'] ['Q1768955', 'P530', 'Q664']
ASK WHERE { VALUES ( ?y ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q1768955 property:P530 ?y }
Muga de Sayago
action is_in
entity prev_answer
action find
entity Muga de Sayago
relation diplomatic relation
['Muga de Sayago', 'diplomatic relation', 'Denmark'] ['Muga de Sayago', 'diplomatic relation', 'Austria'] ['Muga de Sayago', 'diplomatic relation', 'New Zealand']
ASK WHERE { VALUES ( ?y ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Muga_de_Sayago property:diplomatic_relation ?y }
[]
political territorial entity
SYSTEM
NO
(Q1768955,P530,Q35) (Q1768955,P530,Q40) (Q1768955,P530,Q664)
action is_in
entity prev_answer
action find
entity Q1768955
relation P530
[ANSWER]
['Q1768955', 'P530', 'Q35'] ['Q1768955', 'P530', 'Q40'] ['Q1768955', 'P530', 'Q664']
ASK WHERE { VALUES ( ?y ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q1768955 property:P530 ?y }
No
action is_in
entity prev_answer
action find
entity Muga de Sayago
relation diplomatic relation
['Muga de Sayago', 'diplomatic relation', 'Denmark'] ['Muga de Sayago', 'diplomatic relation', 'Austria'] ['Muga de Sayago', 'diplomatic relation', 'New Zealand']
ASK WHERE { VALUES ( ?y ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Muga_de_Sayago property:diplomatic_relation ?y }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q183 Q269013 Q31
P530
Q15617994
USER
Is Germany known to have diplomatic connections with Dolcedo and Belgium ?
(Q183,P530,Q269013) (Q183,P530,Q31)
action is_in
entity Q183
action intersection
action find_reverse
entity Q269013
relation P530
action find_reverse
entity Q31
relation P530
['Q183', 'P530', 'Q269013'] ['Q183', 'P530', 'Q31']
ASK WHERE { resource:Q183 property:P530 resource:Q269013 . resource:Q183 property:P530 resource:Q31 }
Germany Dolcedo Belgium
action is_in
entity Germany
action intersection
action find_reverse
entity Dolcedo
relation diplomatic relation
action find_reverse
entity Belgium
relation diplomatic relation
['Germany', 'diplomatic relation', 'Dolcedo'] ['Germany', 'diplomatic relation', 'Belgium']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Dolcedo . resource:Germany property:diplomatic_relation resource:Belgium }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q183,P530,Q269013) (Q183,P530,Q31)
action is_in
entity Q183
action intersection
action find_reverse
entity Q269013
relation P530
action find_reverse
entity Q31
relation P530
[ANSWER]
['Q183', 'P530', 'Q269013'] ['Q183', 'P530', 'Q31']
ASK WHERE { resource:Q183 property:P530 resource:Q269013 . resource:Q183 property:P530 resource:Q31 }
NO and YES respectively
action is_in
entity Germany
action intersection
action find_reverse
entity Dolcedo
relation diplomatic relation
action find_reverse
entity Belgium
relation diplomatic relation
['Germany', 'diplomatic relation', 'Dolcedo'] ['Germany', 'diplomatic relation', 'Belgium']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Dolcedo . resource:Germany property:diplomatic_relation resource:Belgium }
[]