Simple Question (Direct)
Simple Question
Q19839659
P58
Q502895
USER
Who served as the screenwriter for Cinema Jenin – The Story of a Dream ?
(Q19839659,P58,c(Q502895))
action filter_type
action find
entity Q19839659
relation P58
type Q502895
['Q19839659', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q19839659 property:P58 ?t . ?t rdf:type ontology:Q502895 }
Cinema Jenin – The Story of a Dream
action filter_type
action find
entity Cinema Jenin – The Story of a Dream
relation screenwriter
type common name
['Cinema Jenin – The Story of a Dream', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Cinema_Jenin_–_The_Story_of_a_Dream property:screenwriter ?t . ?t rdf:type ontology:common_name }
[]
common name
Q1299356
SYSTEM
Marcus Vetter
Q1299356
(Q19839659,P58,c(Q502895))
action filter_type
action find
entity Q19839659
relation P58
type Q502895
[ANSWER] served as the screenwriter for Cinema Jenin – The Story of a Dream
['Q19839659', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q19839659 property:P58 ?t . ?t rdf:type ontology:Q502895 }
Marcus Vetter
Marcus Vetter served as the screenwriter for Cinema Jenin – The Story of a Dream
Marcus Vetter
action filter_type
action find
entity Cinema Jenin – The Story of a Dream
relation screenwriter
type common name
['Cinema Jenin – The Story of a Dream', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Cinema_Jenin_–_The_Story_of_a_Dream property:screenwriter ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1299356
P21
Q290
USER
Which sex does that person possess ?
(Q1299356,P21,c(Q290))
action filter_type
action find
entity Q1299356
relation P21
type Q290
['Q1299356', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q1299356 property:P21 ?o . ?o rdf:type ontology:Q290 }
Marcus Vetter
action filter_type
action find
entity Marcus Vetter
relation gender
type sex
['Marcus Vetter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Marcus_Vetter property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1299356,P21,c(Q290))
action filter_type
action find
entity Q1299356
relation P21
type Q290
That person possesses a [ANSWER]
['Q1299356', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q1299356 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Marcus Vetter
relation gender
type sex
['Marcus Vetter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Marcus_Vetter property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1299356
P57
Q838948
USER
Which works of art are that person a director of ?
(c(Q838948),P57,Q6581097)
action filter_type
action find_reverse
entity Q1299356
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q6581097']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q838948 . ?g property:P57 resource:Q1299356 }
Marcus Vetter
action filter_type
action find_reverse
entity Marcus Vetter
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'male']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:work_of_art . ?g property:director resource:Marcus_Vetter }
[]
work of art
Q23034797 Q19828510 Q19839659
SYSTEM
The Promise, The Forecaster, Cinema Jenin – The Story of a Dream
Q1168958 Q19839659 Q1456799 Q23034797 Q19828510 Q1382336
(c(Q838948),P57,Q6581097)
action filter_type
action find_reverse
entity Q1299356
relation P57
type Q838948
[ANSWERS] are that person a director of
[{'concept': 'Q838948'}, 'P57', 'Q6581097']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q838948 . ?g property:P57 resource:Q1299356 }
The Heart of Jenin Cinema Jenin – The Story of a Dream Traders' Dreams The Promise The Forecaster Mein Vater, der Türke
The Promise, The Forecaster and Cinema Jenin – The Story of a Dream are that person a director of
The Promise The Forecaster Cinema Jenin – The Story of a Dream
action filter_type
action find_reverse
entity Marcus Vetter
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'male']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:work_of_art . ?g property:director resource:Marcus_Vetter }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q23034797 Q19828510 Q19839659
P57
Q502895
USER
Who directed The Promise, The Forecaster and Cinema Jenin – The Story of a Dream ?
(Q23034797,P57,c(Q502895)) (Q19828510,P57,c(Q502895)) (Q19839659,P57,c(Q502895))
action union
action filter_type
action find
entity Q23034797
relation P57
type Q502895
action filter_type
action find
entity Q19828510
relation P57
type Q502895
action filter_type
action find
entity Q19839659
relation P57
type Q502895
['Q23034797', 'P57', {'concept': 'Q502895'}] ['Q19828510', 'P57', {'concept': 'Q502895'}] ['Q19839659', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { resource:Q23034797 property:P57 ?e . ?e rdf:type ontology:Q502895 } UNION { resource:Q19828510 property:P57 ?e . ?e rdf:type ontology:Q502895 } }
The Promise The Forecaster Cinema Jenin – The Story of a Dream
action union
action filter_type
action find
entity The Promise
relation director
type common name
action filter_type
action find
entity The Forecaster
relation director
type common name
action filter_type
action find
entity Cinema Jenin – The Story of a Dream
relation director
type common name
['The Promise', 'director', {'concept': 'common name'}] ['The Forecaster', 'director', {'concept': 'common name'}] ['Cinema Jenin – The Story of a Dream', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { resource:The_Promise property:director ?e . ?e rdf:type ontology:common_name } UNION { resource:The_Forecaster property:director ?e . ?e rdf:type ontology:common_name } }
[]
common name
Q1299356 Q1299356 Q1299356
SYSTEM
Marcus Vetter
Q1299356 Q26821209 Q19828511 Q1299356 Q1299356
(Q23034797,P57,c(Q502895)) (Q19828510,P57,c(Q502895)) (Q19839659,P57,c(Q502895))
action union
action filter_type
action find
entity Q23034797
relation P57
type Q502895
action filter_type
action find
entity Q19828510
relation P57
type Q502895
action filter_type
action find
entity Q19839659
relation P57
type Q502895
[ANSWER], [ANSWER] and [ANSWER] directed The Promise, The Forecaster and Cinema Jenin – The Story of a Dream
['Q23034797', 'P57', {'concept': 'Q502895'}] ['Q19828510', 'P57', {'concept': 'Q502895'}] ['Q19839659', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { resource:Q23034797 property:P57 ?e . ?e rdf:type ontology:Q502895 } UNION { resource:Q19828510 property:P57 ?e . ?e rdf:type ontology:Q502895 } }
Marcus Vetter Karin Steinberger Karin Steinberger Marcus Vetter Marcus Vetter
Marcus Vetter, Marcus Vetter and Marcus Vetter directed The Promise, The Forecaster and Cinema Jenin – The Story of a Dream
Marcus Vetter Marcus Vetter Marcus Vetter
action union
action filter_type
action find
entity The Promise
relation director
type common name
action filter_type
action find
entity The Forecaster
relation director
type common name
action filter_type
action find
entity Cinema Jenin – The Story of a Dream
relation director
type common name
['The Promise', 'director', {'concept': 'common name'}] ['The Forecaster', 'director', {'concept': 'common name'}] ['Cinema Jenin – The Story of a Dream', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { resource:The_Promise property:director ?e . ?e rdf:type ontology:common_name } UNION { resource:The_Forecaster property:director ?e . ?e rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1299356
P162
Q838948
USER
Which works of art created Marcus Vetter ?
(c(Q838948),P162,Q1299356)
action filter_type
action find_reverse
entity Q1299356
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q1299356']
SELECT DISTINCT ?d WHERE { ?d property:P162 resource:Q1299356 . ?d rdf:type ontology:Q838948 }
Marcus Vetter
action filter_type
action find_reverse
entity Marcus Vetter
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Marcus Vetter']
SELECT DISTINCT ?d WHERE { ?d property:producer resource:Marcus_Vetter . ?d rdf:type ontology:work_of_art }
[]
work of art
Q19828510 Q23034797
SYSTEM
The Forecaster, The Promise
Q19828510 Q23034797
(c(Q838948),P162,Q1299356)
action filter_type
action find_reverse
entity Q1299356
relation P162
type Q838948
The [ANSWERS] created Marcus Vetter
[{'concept': 'Q838948'}, 'P162', 'Q1299356']
SELECT DISTINCT ?d WHERE { ?d property:P162 resource:Q1299356 . ?d rdf:type ontology:Q838948 }
The Forecaster The Promise
The The Forecaster and The Promise created Marcus Vetter
The Forecaster The Promise
action filter_type
action find_reverse
entity Marcus Vetter
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Marcus Vetter']
SELECT DISTINCT ?d WHERE { ?d property:producer resource:Marcus_Vetter . ?d rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23034797
P1040
Q502895
USER
Who have editted that work of art ?
(Q23034797,P1040,c(Q502895))
action filter_type
action find
entity Q23034797
relation P1040
type Q502895
['Q23034797', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q23034797 property:P1040 ?g . ?g rdf:type ontology:Q502895 }
The Promise
action filter_type
action find
entity The Promise
relation film editor
type common name
['The Promise', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:The_Promise property:film_editor ?g . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q19828510
SYSTEM
Did you mean The Forecaster ?
Q19828510 Q23034797
(Q19828510,P1040,c(Q502895)) (Q23034797,P1040,c(Q502895))
[ANSWER]
['Q19828510', 'P1040', {'concept': 'Q502895'}] ['Q23034797', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q23034797 property:P1040 ?g . ?g rdf:type ontology:Q502895 }
The Forecaster The Promise
Did you mean The Forecaster ?
The Forecaster
['The Forecaster', 'film editor', {'concept': 'common name'}] ['The Promise', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:The_Promise property:film_editor ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant The Promise. Could you tell me the answer for that?
(Q23034797,P1040,c(Q502895))
Q23034797
['Q23034797', 'P1040', {'concept': 'Q502895'}]
['The Promise', 'film editor', {'concept': 'common name'}]
[]
Q1299356 Q23888169
SYSTEM
Marcus Vetter, Michele Gentile
Q1299356 Q23888169
(Q23034797,P1040,c(Q502895))
action filter_type
action find
entity Q23034797
relation P1040
type Q502895
[ANSWERS] have editted that work of art
['Q23034797', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q23034797 property:P1040 ?g . ?g rdf:type ontology:Q502895 }
Marcus Vetter Michele Gentile
Marcus Vetter and Michele Gentile have editted that work of art
Marcus Vetter Michele Gentile
action filter_type
action find
entity The Promise
relation film editor
type common name
['The Promise', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:The_Promise property:film_editor ?g . ?g rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by min number of people ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?l ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?c } } . FILTER ( ?p = ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?p ) WHERE { ?x rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 . ?y property:P1303 ?x } GROUP BY ?x } }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?l ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?c } } . FILTER ( ?p = ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?p ) WHERE { ?x rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name . ?y property:instrument ?x } GROUP BY ?x } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWERS] are played by min number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?l ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?c } } . FILTER ( ?p = ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?p ) WHERE { ?x rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 . ?y property:P1303 ?x } GROUP BY ?x } }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by min number of people
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?l ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?c } } . FILTER ( ?p = ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?p ) WHERE { ?x rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name . ?y property:instrument ?x } GROUP BY ?x } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P180
Q34379 Q1792379 Q838948
USER
How many musical instruments are expressed in less number of art genres and works of art than that musical instrument ?
(c(Q1792379)|c(Q838948),P180,c(Q34379))
[[{'concept': 'Q1792379'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?i ) { ( ?z ) ( ?x ) } . ?i property:P180 ?y } . ?z rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q838948 }
[[{'concept': 'art genre'}, {'concept': 'work of art'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?i ) { ( ?z ) ( ?x ) } . ?i property:depicts ?y } . ?z rdf:type ontology:art_genre . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:work_of_art }
[]
musical instrument art genre work of art
Comparative|Count over More/Less|Mult. entity type|Clarification
Q173453
SYSTEM
Did you mean wind instrument ?
(c(Q1792379)|c(Q838948),P180,c(Q34379))
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?i ) { ( ?z ) ( ?x ) } . ?i property:P180 ?y } . ?z rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q838948 }
Did you mean wind instrument ?
wind instrument
[[{'concept': 'art genre'}, {'concept': 'work of art'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?i ) { ( ?z ) ( ?x ) } . ?i property:depicts ?y } . ?z rdf:type ontology:art_genre . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:work_of_art }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q1792379)|c(Q838948),P180,c(Q34379))
[[{'concept': 'Q1792379'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q34379'}]
[[{'concept': 'art genre'}, {'concept': 'work of art'}], 'depicts', {'concept': 'musical instrument'}]
[]
SYSTEM
0
(c(Q1792379)|c(Q838948),P180,c(Q34379))
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P180 ?y } UNION { ?x property:P180 ?y } } . ?z rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q838948 }
0
[[{'concept': 'art genre'}, {'concept': 'work of art'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:depicts ?y } UNION { ?x property:depicts ?y } } . ?z rdf:type ontology:art_genre . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do exactly 2 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { FILTER ( ?f = 2 ) . { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?u } }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { FILTER ( ?f = 2 ) . { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?u } }
[]
musical instrument common name
SYSTEM
8
Q201129 Q424017 Q3574843 Q182718 Q862501 Q537750 Q1300012 Q483994
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { FILTER ( ?f = 2 ) . { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?u } }
lyre acoustic bass guitar tonbak Nyckelharpa ondes Martenot Djembe toy piano Kazoo
8
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { FILTER ( ?f = 2 ) . { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?u } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6396532 Q19839659
P27 P495
Q15617994
USER
Which administrative territories are the countries of origin of Cinema Jenin – The Story of a Dream or do Kevin Hughes belong to ?
OR((Q19839659,P495,c(Q15617994)), (Q6396532,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q19839659
relation P495
action find
entity Q6396532
relation P27
type Q15617994
{'OR': [['Q19839659', 'P495', {'concept': 'Q15617994'}], ['Q6396532', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q19839659 property:P495 ?w } UNION { resource:Q6396532 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Kevin Hughes Cinema Jenin – The Story of a Dream
action filter_type
action union
action find
entity Cinema Jenin – The Story of a Dream
relation country of origin
action find
entity Kevin Hughes
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Cinema Jenin – The Story of a Dream', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Kevin Hughes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Cinema_Jenin_–_The_Story_of_a_Dream property:country_of_origin ?w } UNION { resource:Kevin_Hughes property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q801 Q145
SYSTEM
Israel, United Kingdom
Q801 Q145
OR((Q19839659,P495,c(Q15617994)), (Q6396532,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q19839659
relation P495
action find
entity Q6396532
relation P27
type Q15617994
[ANSWERS] are the countries of origin of Cinema Jenin – The Story of a Dream or do Kevin Hughes belong to
{'OR': [['Q19839659', 'P495', {'concept': 'Q15617994'}], ['Q6396532', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q19839659 property:P495 ?w } UNION { resource:Q6396532 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Israel United Kingdom
Israel and United Kingdom are the countries of origin of Cinema Jenin – The Story of a Dream or do Kevin Hughes belong to
Israel United Kingdom
action filter_type
action union
action find
entity Cinema Jenin – The Story of a Dream
relation country of origin
action find
entity Kevin Hughes
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Cinema Jenin – The Story of a Dream', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Kevin Hughes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Cinema_Jenin_–_The_Story_of_a_Dream property:country_of_origin ?w } UNION { resource:Kevin_Hughes property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q183
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with around the same number of administrative territories as Germany ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?x ) WHERE { ?o property:P530 ?y . ?o rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Q183 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?x = ?u ) }
Germany
action approx
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 political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?x ) WHERE { ?o property:diplomatic_relation ?y . ?o rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?x = ?u ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[ANSWERS] hold diplomatic relationship with around the same number of administrative territories as Germany
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?x ) WHERE { ?o property:P530 ?y . ?o rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Q183 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?x = ?u ) }
Germany Australia
Germany and Australia hold diplomatic relationship with around the same number of administrative territories as Germany
Germany Australia
action approx
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 political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?x ) WHERE { ?o property:diplomatic_relation ?y . ?o rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?x = ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q778
P530
Q1048835 Q15617994
USER
And also tell me about The Bahamas?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?y ) WHERE { ?s property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q778 property:P530 ?k . ?k rdf:type ontology:Q1048835 } } . FILTER ( ?y = ?d ) }
The Bahamas
action approx
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 The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?y ) WHERE { ?s property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:The_Bahamas property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity } } . FILTER ( ?y = ?d ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?y ) WHERE { ?s property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q778 property:P530 ?k . ?k rdf:type ontology:Q1048835 } } . FILTER ( ?y = ?d ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
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 The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?y ) WHERE { ?s property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:The_Bahamas property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity } } . FILTER ( ?y = ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q781
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relationships with more number of political territories than Antigua and Barbuda ?
(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 Q781
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?z ) WHERE { ?n property:P530 ?p . ?n rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?n } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Q781 property:P530 ?g . ?g rdf:type ontology:Q1048835 } } }
Antigua and Barbuda
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 Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?z ) WHERE { ?n property:diplomatic_relation ?p . ?n rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?n } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?g . ?g 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 Q781
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?z ) WHERE { ?n property:P530 ?p . ?n rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?n } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Q781 property:P530 ?g . ?g 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 Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?z ) WHERE { ?n property:diplomatic_relation ?p . ?n rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?n } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?g . ?g rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q769
P530
Q1048835 Q1048835
USER
And also tell me about Grenada?
(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 Q769
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?p ) WHERE { ?c property:P530 ?q . ?c rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Q769 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?p > ?g ) }
Grenada
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 Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?p ) WHERE { ?c property:diplomatic_relation ?q . ?c rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Grenada property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?p > ?g ) }
[]
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 Q769
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?p ) WHERE { ?c property:P530 ?q . ?c rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Q769 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?p > ?g ) }
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 Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?p ) WHERE { ?c property:diplomatic_relation ?q . ?c rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Grenada property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?p > ?g ) }
[]