Simple Question (Direct)
Simple Question
Q1625927
P462
Q1075
USER
Which color is Adrift associated with ?
(Q1625927,P462,c(Q1075))
action filter_type
action find
entity Q1625927
relation P462
type Q1075
['Q1625927', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?m WHERE { resource:Q1625927 property:P462 ?m . ?m rdf:type ontology:Q1075 }
Adrift
action filter_type
action find
entity Adrift
relation color
type color
['Adrift', 'color', {'concept': 'color'}]
SELECT DISTINCT ?m WHERE { resource:Adrift property:color ?m . ?m rdf:type ontology:color }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q1625927,P462,c(Q1075))
action filter_type
action find
entity Q1625927
relation P462
type Q1075
Adrift is associated with [ANSWER]
['Q1625927', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?m WHERE { resource:Q1625927 property:P462 ?m . ?m rdf:type ontology:Q1075 }
color
Adrift is associated with color
color
action filter_type
action find
entity Adrift
relation color
type color
['Adrift', 'color', {'concept': 'color'}]
SELECT DISTINCT ?m WHERE { resource:Adrift property:color ?m . ?m rdf:type ontology:color }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1625927
P915
Q56061
USER
Which administrative territory was that work of art filmed at ?
(Q22006653,P915,c(Q56061))
action filter_type
action find
entity Q1625927
relation P915
type Q56061
['Q22006653', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q1625927 property:P915 ?u . ?u rdf:type ontology:Q56061 }
Adrift
action filter_type
action find
entity Adrift
relation filming location
type administrative territorial entity
['color', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Adrift property:filming_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8678
SYSTEM
Rio de Janeiro
Q8678
(Q22006653,P915,c(Q56061))
action filter_type
action find
entity Q1625927
relation P915
type Q56061
That work of art was filmed in [ANSWER]
['Q22006653', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q1625927 property:P915 ?u . ?u rdf:type ontology:Q56061 }
Rio de Janeiro
That work of art was filmed in Rio de Janeiro
Rio de Janeiro
action filter_type
action find
entity Adrift
relation filming location
type administrative territorial entity
['color', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Adrift property:filming_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q8678 Q442665
P915
Q838948
USER
Was Celtic Tiger Live filmed at that administrative territory ?
(Q442665,P915,Q8678)
action is_in
entity Q442665
action find
entity Q8678
relation P915
['Q442665', 'P915', 'Q8678']
ASK WHERE { resource:Q8678 property:P915 resource:Q442665 }
Rio de Janeiro Celtic Tiger Live
action is_in
entity Celtic Tiger Live
action find
entity Rio de Janeiro
relation filming location
['Celtic Tiger Live', 'filming location', 'Rio de Janeiro']
ASK WHERE { resource:Rio_de_Janeiro property:filming_location resource:Celtic_Tiger_Live }
[]
work of art
SYSTEM
NO
(Q442665,P915,Q8678)
action is_in
entity Q442665
action find
entity Q8678
relation P915
[ANSWER]
['Q442665', 'P915', 'Q8678']
ASK WHERE { resource:Q8678 property:P915 resource:Q442665 }
No
action is_in
entity Celtic Tiger Live
action find
entity Rio de Janeiro
relation filming location
['Celtic Tiger Live', 'filming location', 'Rio de Janeiro']
ASK WHERE { resource:Rio_de_Janeiro property:filming_location resource:Celtic_Tiger_Live }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1625927 Q155
P495
Q15617994
USER
Did Adrift originate Brazil ?
(Q1625927,P495,Q155)
action is_in
entity Q155
action find
entity Q1625927
relation P495
['Q1625927', 'P495', 'Q155']
ASK WHERE { resource:Q1625927 property:P495 resource:Q155 }
Adrift Brazil
action is_in
entity Brazil
action find
entity Adrift
relation country of origin
['Adrift', 'country of origin', 'Brazil']
ASK WHERE { resource:Adrift property:country_of_origin resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1625927,P495,Q155)
action is_in
entity Q155
action find
entity Q1625927
relation P495
[ANSWER]
['Q1625927', 'P495', 'Q155']
ASK WHERE { resource:Q1625927 property:P495 resource:Q155 }
Yes
action is_in
entity Brazil
action find
entity Adrift
relation country of origin
['Adrift', 'country of origin', 'Brazil']
ASK WHERE { resource:Adrift property:country_of_origin resource:Brazil }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10537994 Q1625927
P495
Q15617994
USER
Which administrative territories are the countries of origin of Adrift or Israel vs Israel ?
OR((Q1625927,P495,c(Q15617994)), (Q10537994,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1625927
relation P495
action find
entity Q10537994
relation P495
type Q15617994
{'OR': [['Q1625927', 'P495', {'concept': 'Q15617994'}], ['Q10537994', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q1625927 property:P495 ?n } UNION { resource:Q10537994 property:P495 ?n } } . ?n rdf:type ontology:Q15617994 }
Israel vs Israel Adrift
action filter_type
action union
action find
entity Adrift
relation country of origin
action find
entity Israel vs Israel
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Adrift', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Israel vs Israel', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Adrift property:country_of_origin ?n } UNION { resource:Israel_vs_Israel property:country_of_origin ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q801 Q34
SYSTEM
Brazil, Israel, Sweden
Q155 Q801 Q34
OR((Q1625927,P495,c(Q15617994)), (Q10537994,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1625927
relation P495
action find
entity Q10537994
relation P495
type Q15617994
[ANSWERS] are the countries of origin of Adrift or Israel vs Israel
{'OR': [['Q1625927', 'P495', {'concept': 'Q15617994'}], ['Q10537994', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q1625927 property:P495 ?n } UNION { resource:Q10537994 property:P495 ?n } } . ?n rdf:type ontology:Q15617994 }
Brazil Israel Sweden
Brazil, Israel and Sweden are the countries of origin of Adrift or Israel vs Israel
Brazil Israel Sweden
action filter_type
action union
action find
entity Adrift
relation country of origin
action find
entity Israel vs Israel
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Adrift', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Israel vs Israel', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Adrift property:country_of_origin ?n } UNION { resource:Israel_vs_Israel property:country_of_origin ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q838948 Q1190554 Q502895
USER
How many works of art are exactly 1 events and people a part of ?
(c(Q1190554)|c(Q502895),P361,c(Q838948))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q1190554
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
value 1
[[{'concept': 'Q1190554'}, {'concept': 'Q502895'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?p ) WHERE { VALUES ( ?c ) { ( ontology:Q1190554 ) ( ontology:Q502895 ) } . ?q rdf:type ?c } GROUP BY ?y } . FILTER ( ?p = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type work of art
type event
action find_reverse_tuple_counts
relation part of
type work of art
type common name
value 1
[[{'concept': 'event'}, {'concept': 'common name'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?p ) WHERE { VALUES ( ?c ) { ( ontology:event ) ( ontology:common_name ) } . ?q rdf:type ?c } GROUP BY ?y } . FILTER ( ?p = 1 ) }
[]
work of art event common name
SYSTEM
10
Q1762957 Q10550583 Q1195466 Q187483 Q6519361 Q2905386 Q213053 Q2089457 Q283134 Q10512738
(c(Q1190554)|c(Q502895),P361,c(Q838948))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q1190554
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
value 1
[ANSWER]
[[{'concept': 'Q1190554'}, {'concept': 'Q502895'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?p ) WHERE { VALUES ( ?c ) { ( ontology:Q1190554 ) ( ontology:Q502895 ) } . ?q rdf:type ?c } GROUP BY ?y } . FILTER ( ?p = 1 ) }
Release the Prisoners to Spring Kurt Olsson – filmen om mitt liv som mig själv The Man on the Roof Bayeux Tapestry Leif Black Jack Superman Cold War Supergirl Göta kanal eller Vem drog ur proppen?
10
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type work of art
type event
action find_reverse_tuple_counts
relation part of
type work of art
type common name
value 1
[[{'concept': 'event'}, {'concept': 'common name'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?p ) WHERE { VALUES ( ?c ) { ( ontology:event ) ( ontology:common_name ) } . ?q rdf:type ?c } GROUP BY ?y } . FILTER ( ?p = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q183
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with lesser number of administrative territories than Germany ?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?x ) WHERE { ?z property:P530 ?k . ?z rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { resource:Q183 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?x < ?w ) }
Germany
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?x ) WHERE { ?z property:diplomatic_relation ?k . ?z rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { resource:Germany property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x < ?w ) }
[]
political territorial entity designation for an administrative territorial entity
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q1000 Q40 Q781 Q778 Q408 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWERS] have a diplomatic relationship with lesser number of administrative territories than Germany
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?x ) WHERE { ?z property:P530 ?k . ?z rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { resource:Q183 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?x < ?w ) }
Gabon Austria Antigua and Barbuda The Bahamas Australia Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Australia, Denmark and Canada have a diplomatic relationship with lesser number of administrative territories than Germany
Australia Denmark Canada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?x ) WHERE { ?z property:diplomatic_relation ?k . ?z rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { resource:Germany property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x < ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q781
P530
Q1048835 Q15617994
USER
And how about Antigua and Barbuda?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?q ) WHERE { ?w property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Q781 property:P530 ?u . ?u rdf:type ontology:Q1048835 } } . FILTER ( ?q < ?e ) }
Antigua and Barbuda
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?q ) WHERE { ?w property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity } } . FILTER ( ?q < ?e ) }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?q ) WHERE { ?w property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Q781 property:P530 ?u . ?u rdf:type ontology:Q1048835 } } . FILTER ( ?q < ?e ) }
Solomon Islands Papua New Guinea
Solomon Islands Papua New Guinea
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?q ) WHERE { ?w property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity } } . FILTER ( ?q < ?e ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q199479
P17
Q15324
USER
Are Solomon Sea present in those political territories ?
(Q199479,P17,Q685) (Q199479,P17,Q691)
action is_in
entity prev_answer
action find
entity Q199479
relation P17
['Q199479', 'P17', 'Q685'] ['Q199479', 'P17', 'Q691']
ASK WHERE { VALUES ( ?s ) { ( resource:Q685 ) ( resource:Q691 ) } . resource:Q199479 property:P17 ?s }
Solomon Sea
action is_in
entity prev_answer
action find
entity Solomon Sea
relation country
['Solomon Sea', 'country', 'Solomon Islands'] ['Solomon Sea', 'country', 'Papua New Guinea']
ASK WHERE { VALUES ( ?s ) { ( resource:Solomon_Islands ) ( resource:Papua_New_Guinea ) } . resource:Solomon_Sea property:country ?s }
[]
body of water
SYSTEM
YES
(Q199479,P17,Q685) (Q199479,P17,Q691)
action is_in
entity prev_answer
action find
entity Q199479
relation P17
[ANSWER]
['Q199479', 'P17', 'Q685'] ['Q199479', 'P17', 'Q691']
ASK WHERE { VALUES ( ?s ) { ( resource:Q685 ) ( resource:Q691 ) } . resource:Q199479 property:P17 ?s }
Yes
action is_in
entity prev_answer
action find
entity Solomon Sea
relation country
['Solomon Sea', 'country', 'Solomon Islands'] ['Solomon Sea', 'country', 'Papua New Guinea']
ASK WHERE { VALUES ( ?s ) { ( resource:Solomon_Islands ) ( resource:Papua_New_Guinea ) } . resource:Solomon_Sea property:country ?s }
[]