Simple Question (Direct)
Simple Question
Q3520750
P364
Q11028
USER
What is the original language of creation of The End of the Feud ?
(Q3520750,P364,c(Q11028))
action filter_type
action find
entity Q3520750
relation P364
type Q11028
['Q3520750', 'P364', {'concept': 'Q11028'}]
SELECT DISTINCT ?l WHERE { resource:Q3520750 property:P364 ?l . ?l rdf:type ontology:Q11028 }
The End of the Feud
action filter_type
action find
entity The End of the Feud
relation original language of work
type information
['The End of the Feud', 'original language of work', {'concept': 'information'}]
SELECT DISTINCT ?l WHERE { resource:The_End_of_the_Feud property:original_language_of_work ?l . ?l rdf:type ontology:information }
[]
information
Q21686005
SYSTEM
n/a (silent film)
Q21686005
(Q3520750,P364,c(Q11028))
action filter_type
action find
entity Q3520750
relation P364
type Q11028
The original language of creation of is [ANSWER]
['Q3520750', 'P364', {'concept': 'Q11028'}]
SELECT DISTINCT ?l WHERE { resource:Q3520750 property:P364 ?l . ?l rdf:type ontology:Q11028 }
n/a (silent film)
The original language of creation of is n/a (silent film)
n/a (silent film)
action filter_type
action find
entity The End of the Feud
relation original language of work
type information
['The End of the Feud', 'original language of work', {'concept': 'information'}]
SELECT DISTINCT ?l WHERE { resource:The_End_of_the_Feud property:original_language_of_work ?l . ?l rdf:type ontology:information }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q21686005 Q7770342
P364
Q201658
USER
Was The Trouble Hunter done in that information language during its inception ?
(Q7770342,P364,Q21686005)
action is_in
entity Q21686005
action find
entity Q7770342
relation P364
['Q7770342', 'P364', 'Q21686005']
ASK WHERE { resource:Q7770342 property:P364 resource:Q21686005 }
n/a (silent film) The Trouble Hunter
action is_in
entity n/a (silent film)
action find
entity The Trouble Hunter
relation original language of work
['The Trouble Hunter', 'original language of work', 'n/a (silent film)']
ASK WHERE { resource:The_Trouble_Hunter property:original_language_of_work resource:n/a_(silent_film) }
[]
film genre
SYSTEM
YES
(Q7770342,P364,Q21686005)
action is_in
entity Q21686005
action find
entity Q7770342
relation P364
[ANSWER]
['Q7770342', 'P364', 'Q21686005']
ASK WHERE { resource:Q7770342 property:P364 resource:Q21686005 }
Yes
action is_in
entity n/a (silent film)
action find
entity The Trouble Hunter
relation original language of work
['The Trouble Hunter', 'original language of work', 'n/a (silent film)']
ASK WHERE { resource:The_Trouble_Hunter property:original_language_of_work resource:n/a_(silent_film) }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3520750 Q15992446 Q789846
P161
Q502895
USER
Does The End of the Feud have Gaston Hako and Ferenc Balázs in its star cast ?
(Q3520750,P161,Q15992446) (Q3520750,P161,Q789846)
action is_in
entity Q3520750
action intersection
action find_reverse
entity Q15992446
relation P161
action find_reverse
entity Q789846
relation P161
['Q3520750', 'P161', 'Q15992446'] ['Q3520750', 'P161', 'Q789846']
ASK WHERE { resource:Q3520750 property:P161 resource:Q789846 . resource:Q3520750 property:P161 resource:Q15992446 }
The End of the Feud Gaston Hako Ferenc Balázs
action is_in
entity The End of the Feud
action intersection
action find_reverse
entity Gaston Hako
relation cast member
action find_reverse
entity Ferenc Balázs
relation cast member
['The End of the Feud', 'cast member', 'Gaston Hako'] ['The End of the Feud', 'cast member', 'Ferenc Balázs']
ASK WHERE { resource:The_End_of_the_Feud property:cast_member resource:Ferenc_Balázs . resource:The_End_of_the_Feud property:cast_member resource:Gaston_Hako }
[]
common name
SYSTEM
NO
(Q3520750,P161,Q15992446) (Q3520750,P161,Q789846)
action is_in
entity Q3520750
action intersection
action find_reverse
entity Q15992446
relation P161
action find_reverse
entity Q789846
relation P161
[ANSWER]
['Q3520750', 'P161', 'Q15992446'] ['Q3520750', 'P161', 'Q789846']
ASK WHERE { resource:Q3520750 property:P161 resource:Q789846 . resource:Q3520750 property:P161 resource:Q15992446 }
No
action is_in
entity The End of the Feud
action intersection
action find_reverse
entity Gaston Hako
relation cast member
action find_reverse
entity Ferenc Balázs
relation cast member
['The End of the Feud', 'cast member', 'Gaston Hako'] ['The End of the Feud', 'cast member', 'Ferenc Balázs']
ASK WHERE { resource:The_End_of_the_Feud property:cast_member resource:Ferenc_Balázs . resource:The_End_of_the_Feud property:cast_member resource:Gaston_Hako }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3520750 Q2658252
P495
Q15617994
USER
How many administrative territories are the origin of The End of the Feud or Yamato (state) ?
(Q3520750,P495,c(Q15617994)) (Q2658252,P495,c(Q15617994))
action count
action union
action filter_type
action find
entity Q3520750
relation P495
type Q15617994
action filter_type
action find
entity Q2658252
relation P495
type Q15617994
['Q3520750', 'P495', {'concept': 'Q15617994'}] ['Q2658252', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { resource:Q3520750 property:P495 ?s . ?s rdf:type ontology:Q15617994 } UNION { resource:Q2658252 property:P495 ?s . ?s rdf:type ontology:Q15617994 } }
The End of the Feud Yamato (state)
action count
action union
action filter_type
action find
entity The End of the Feud
relation country of origin
type designation for an administrative territorial entity
action filter_type
action find
entity Yamato (state)
relation country of origin
type designation for an administrative territorial entity
['The End of the Feud', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Yamato (state)', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { resource:The_End_of_the_Feud property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Yamato_(state) property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q17 Q30
(Q3520750,P495,c(Q15617994)) (Q2658252,P495,c(Q15617994))
action count
action union
action filter_type
action find
entity Q3520750
relation P495
type Q15617994
action filter_type
action find
entity Q2658252
relation P495
type Q15617994
[ANSWER]
['Q3520750', 'P495', {'concept': 'Q15617994'}] ['Q2658252', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { resource:Q3520750 property:P495 ?s . ?s rdf:type ontology:Q15617994 } UNION { resource:Q2658252 property:P495 ?s . ?s rdf:type ontology:Q15617994 } }
Japan United States of America
2
action count
action union
action filter_type
action find
entity The End of the Feud
relation country of origin
type designation for an administrative territorial entity
action filter_type
action find
entity Yamato (state)
relation country of origin
type designation for an administrative territorial entity
['The End of the Feud', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Yamato (state)', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { resource:The_End_of_the_Feud property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Yamato_(state) property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P2079
Q2695280 Q838948
USER
Which technicss are used to fabricate atleast 1 work of art ?
(c(Q838948),P2079,c(Q2695280))
action atleast
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
value 1
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:P2079 ?m . ?m rdf:type ontology:Q2695280 . ?d rdf:type ontology:Q838948 } GROUP BY ?m } . FILTER ( ?e >= 1 ) }
action atleast
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
value 1
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:fabrication_method ?m . ?m rdf:type ontology:technics . ?d rdf:type ontology:work_of_art } GROUP BY ?m } . FILTER ( ?e >= 1 ) }
[]
technics work of art
Q1334300 Q170593
SYSTEM
gilding, collage
Q1334300 Q170593
(c(Q838948),P2079,c(Q2695280))
action atleast
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
value 1
[ANSWERS] are used to fabricate atleast 1 work of art
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:P2079 ?m . ?m rdf:type ontology:Q2695280 . ?d rdf:type ontology:Q838948 } GROUP BY ?m } . FILTER ( ?e >= 1 ) }
gilding collage
Gilding and collage are used to fabricate atleast 1 work of art
gilding collage
action atleast
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
value 1
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:fabrication_method ?m . ?m rdf:type ontology:technics . ?d rdf:type ontology:work_of_art } GROUP BY ?m } . FILTER ( ?e >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1120822 Q7770342
P495
Q15617994
USER
Which administrative territories are the origin of The Trouble Hunter or Chaka ?
OR((Q7770342,P495,c(Q15617994)), (Q1120822,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q7770342
relation P495
action find
entity Q1120822
relation P495
type Q15617994
{'OR': [['Q7770342', 'P495', {'concept': 'Q15617994'}], ['Q1120822', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q7770342 property:P495 ?c } UNION { resource:Q1120822 property:P495 ?c } } }
Chaka The Trouble Hunter
action filter_type
action union
action find
entity The Trouble Hunter
relation country of origin
action find
entity Chaka
relation country of origin
type designation for an administrative territorial entity
{'OR': [['The Trouble Hunter', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Chaka', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:The_Trouble_Hunter property:country_of_origin ?c } UNION { resource:Chaka property:country_of_origin ?c } } }
[]
designation for an administrative territorial entity
Q30 Q1013
SYSTEM
United States of America, Lesotho
Q30 Q1013
OR((Q7770342,P495,c(Q15617994)), (Q1120822,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q7770342
relation P495
action find
entity Q1120822
relation P495
type Q15617994
[ANSWERS] are the origin of The Trouble Hunter or Chaka
{'OR': [['Q7770342', 'P495', {'concept': 'Q15617994'}], ['Q1120822', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q7770342 property:P495 ?c } UNION { resource:Q1120822 property:P495 ?c } } }
United States of America Lesotho
United States of America and Lesotho are the origin of The Trouble Hunter or Chaka
United States of America Lesotho
action filter_type
action union
action find
entity The Trouble Hunter
relation country of origin
action find
entity Chaka
relation country of origin
type designation for an administrative territorial entity
{'OR': [['The Trouble Hunter', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Chaka', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:The_Trouble_Hunter property:country_of_origin ?c } UNION { resource:Chaka property:country_of_origin ?c } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q838948 Q2342494
USER
How many administrative territories are depicted in around 1 works of art or collectables ?
(c(Q838948)|c(Q2342494),P180,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 1
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?i WHERE { { ?i rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q838948 . ?j property:P180 ?i } UNION { ?j property:P180 ?i . ?i rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?i } }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 1
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?i WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:work_of_art . ?j property:depicts ?i } UNION { ?j property:depicts ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:collectable } } GROUP BY ?i } }
[]
designation for an administrative territorial entity work of art collectable
SYSTEM
5
Q1028 Q298 Q79 Q1011 Q913434
(c(Q838948)|c(Q2342494),P180,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 1
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?i WHERE { { ?i rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q838948 . ?j property:P180 ?i } UNION { ?j property:P180 ?i . ?i rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?i } }
Morocco Chile Egypt Cape Verde Les Halles
5
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 1
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?i WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:work_of_art . ?j property:depicts ?i } UNION { ?j property:depicts ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:collectable } } GROUP BY ?i } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q766
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with more number of administrative territories than Jamaica ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?o ) WHERE { ?e property:P530 ?u . ?e rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { ?r rdf:type ontology:Q1048835 . resource:Q766 property:P530 ?r } } . FILTER ( ?o > ?d ) }
Jamaica
action greater
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?o ) WHERE { ?e property:diplomatic_relation ?u . ?e rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { ?r rdf:type ontology:political_territorial_entity . resource:Jamaica property:diplomatic_relation ?r } } . FILTER ( ?o > ?d ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWERS] have a diplomatic relationship with more number of administrative territories than Jamaica
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?o ) WHERE { ?e property:P530 ?u . ?e rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { ?r rdf:type ontology:Q1048835 . resource:Q766 property:P530 ?r } } . FILTER ( ?o > ?d ) }
Austria Germany Australia Denmark Canada New Zealand
Germany, Australia and Denmark have a diplomatic relationship with more number of administrative territories than Jamaica
Germany Australia Denmark
action greater
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?o ) WHERE { ?e property:diplomatic_relation ?u . ?e rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { ?r rdf:type ontology:political_territorial_entity . resource:Jamaica property:diplomatic_relation ?r } } . FILTER ( ?o > ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q769
P530
Q1048835 Q15617994
USER
And also tell me about Grenada?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?s ) WHERE { ?b property:P530 ?n . ?b rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Q769 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?w ) }
Grenada
action greater
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 Grenada
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 ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?s ) WHERE { ?b property:diplomatic_relation ?n . ?b rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Grenada property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?w ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?s ) WHERE { ?b property:P530 ?n . ?b rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Q769 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?w ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
Germany Australia Denmark
action greater
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 Grenada
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 ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?s ) WHERE { ?b property:diplomatic_relation ?n . ?b rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Grenada property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?w ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q15617994
USER
How many administrative territories have diplomatic relationships with that political territory ?
(Q408,P530,c(Q15617994))
['Q408', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q17666015 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Australia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q183
SYSTEM
Did you mean Germany ?
(Q183,P530,c(Q15617994)) (Q408,P530,c(Q15617994)) (Q35,P530,c(Q15617994))
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}] ['Q408', 'P530', {'concept': 'Q15617994'}] ['Q35', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q17666015 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Germany ?
Germany
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Australia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Australia. Could you tell me the answer for that?
(Q408,P530,c(Q15617994))
Q408
['Q408', 'P530', {'concept': 'Q15617994'}]
['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
106
Q702 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q924 Q833 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q244 Q33 Q921 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q734 Q736 Q233 Q20 Q1041 Q27 Q29 Q819 Q1027 Q1020 Q843 Q1029 Q225 Q224 Q221 Q96 Q229 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q712 Q977 Q1009 Q683 Q686 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q678 Q33788 Q869 Q953
(Q408,P530,c(Q15617994))
[ANSWER]
['Q408', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q17666015 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Federated States of Micronesia Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Tanzania Malaysia Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Barbados Finland Brunei Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Guyana Ecuador Malta Norway Senegal Ireland Spain Laos Mauritius Malawi Pakistan Mozambique Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Nigeria Namibia Estonia Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Fiji Djibouti Cameroon Samoa Vanuatu East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Tonga New Caledonia Thailand Zambia
106
['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Australia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P138
Q2235308
USER
Which ship types have United States of America as their namesake ?
(c(Q2235308),P138,Q30)
action filter_type
action find_reverse
entity Q30
relation P138
type Q2235308
[{'concept': 'Q2235308'}, 'P138', 'Q30']
SELECT DISTINCT ?g WHERE { ?g property:P138 resource:Q30 . ?g rdf:type ontology:Q2235308 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'United States of America']
SELECT DISTINCT ?g WHERE { ?g property:named_after resource:United_States_of_America . ?g rdf:type ontology:ship_type }
[]
ship type
Q509266 Q7408497
SYSTEM
USS America, USS America
Q509266 Q7408497
(c(Q2235308),P138,Q30)
action filter_type
action find_reverse
entity Q30
relation P138
type Q2235308
The [ANSWERS] have United States of America as their namesake
[{'concept': 'Q2235308'}, 'P138', 'Q30']
SELECT DISTINCT ?g WHERE { ?g property:P138 resource:Q30 . ?g rdf:type ontology:Q2235308 }
USS America USS America
The USS America and USS America have United States of America as their namesake
USS America USS America
action filter_type
action find_reverse
entity United States of America
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'United States of America']
SELECT DISTINCT ?g WHERE { ?g property:named_after resource:United_States_of_America . ?g rdf:type ontology:ship_type }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q509266 Q7408497
P138
Q15617994
USER
What are those ship types named after ?
(Q509266,P138,c(Q15617994)) (Q7408497,P138,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P138
type Q15617994
['Q509266', 'P138', {'concept': 'Q15617994'}] ['Q7408497', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { ?m property:P138 ?y . ?y rdf:type ontology:Q15617994 . VALUES ( ?m ) { ( resource:Q509266 ) ( resource:Q7408497 ) } }
USS America USS America
action filter_type
action find
entity prev_answer
relation named after
type designation for an administrative territorial entity
['USS America', 'named after', {'concept': 'designation for an administrative territorial entity'}] ['USS America', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?m property:named_after ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?m ) { ( resource:USS_America ) ( resource:USS_America ) } }
[]
designation for an administrative territorial entity
Q30 Q30
SYSTEM
United States of America
Q30 Q30
(Q509266,P138,c(Q15617994)) (Q7408497,P138,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P138
type Q15617994
Those ship types named after are [ANSWER] and [ANSWER]
['Q509266', 'P138', {'concept': 'Q15617994'}] ['Q7408497', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { ?m property:P138 ?y . ?y rdf:type ontology:Q15617994 . VALUES ( ?m ) { ( resource:Q509266 ) ( resource:Q7408497 ) } }
United States of America United States of America
Those ship types named after are United States of America and United States of America
United States of America United States of America
action filter_type
action find
entity prev_answer
relation named after
type designation for an administrative territorial entity
['USS America', 'named after', {'concept': 'designation for an administrative territorial entity'}] ['USS America', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?m property:named_after ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?m ) { ( resource:USS_America ) ( resource:USS_America ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P159
Q28640
USER
Which profession has HQ at Germany ?
(c(Q28640),P159,Q183)
action filter_type
action find_reverse
entity Q183
relation P159
type Q28640
[{'concept': 'Q28640'}, 'P159', 'Q183']
SELECT DISTINCT ?i WHERE { ?i property:P159 resource:Q183 . ?i rdf:type ontology:Q28640 }
Germany
action filter_type
action find_reverse
entity Germany
relation headquarters location
type profession
[{'concept': 'profession'}, 'headquarters location', 'Germany']
SELECT DISTINCT ?i WHERE { ?i property:headquarters_location resource:Germany . ?i rdf:type ontology:profession }
[]
profession
Q662567
SYSTEM
Ariolasoft
Q662567
(c(Q28640),P159,Q183)
action filter_type
action find_reverse
entity Q183
relation P159
type Q28640
[ANSWER] has HQ at Germany
[{'concept': 'Q28640'}, 'P159', 'Q183']
SELECT DISTINCT ?i WHERE { ?i property:P159 resource:Q183 . ?i rdf:type ontology:Q28640 }
Ariolasoft
Ariolasoft has HQ at Germany
Ariolasoft
action filter_type
action find_reverse
entity Germany
relation headquarters location
type profession
[{'concept': 'profession'}, 'headquarters location', 'Germany']
SELECT DISTINCT ?i WHERE { ?i property:headquarters_location resource:Germany . ?i rdf:type ontology:profession }
[]