Simple Question (Direct)
Simple Question
Q359474
P27
Q15617994
USER
Which administrative territory is the native country of Necro ?
(Q359474,P27,c(Q15617994))
action filter_type
action find
entity Q359474
relation P27
type Q15617994
['Q359474', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q359474 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Necro
action filter_type
action find
entity Necro
relation country of citizenship
type designation for an administrative territorial entity
['Necro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Necro property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q359474,P27,c(Q15617994))
action filter_type
action find
entity Q359474
relation P27
type Q15617994
[ANSWER] is the native country of Necro
['Q359474', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q359474 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
United States of America
United States of America is the native country of Necro
United States of America
action filter_type
action find
entity Necro
relation country of citizenship
type designation for an administrative territorial entity
['Necro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Necro property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q359474
P57
Q838948
USER
Which work of art is that person a director of ?
(c(Q838948),P57,Q30)
action filter_type
action find_reverse
entity Q359474
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q30']
SELECT DISTINCT ?j WHERE { ?j property:P57 resource:Q359474 . ?j rdf:type ontology:Q838948 }
Necro
action filter_type
action find_reverse
entity Necro
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'United States of America']
SELECT DISTINCT ?j WHERE { ?j property:director resource:Necro . ?j rdf:type ontology:work_of_art }
[]
work of art
Q7458905
SYSTEM
Sexy Sluts: Been There, Done That
Q7458905
(c(Q838948),P57,Q30)
action filter_type
action find_reverse
entity Q359474
relation P57
type Q838948
[ANSWER] is that person a director of
[{'concept': 'Q838948'}, 'P57', 'Q30']
SELECT DISTINCT ?j WHERE { ?j property:P57 resource:Q359474 . ?j rdf:type ontology:Q838948 }
Sexy Sluts: Been There, Done That
Sexy Sluts: Been There, Done That is that person a director of
Sexy Sluts: Been There, Done That
action filter_type
action find_reverse
entity Necro
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'United States of America']
SELECT DISTINCT ?j WHERE { ?j property:director resource:Necro . ?j rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7458905 Q30
P495
Q15617994
USER
Is United States of America the origin of that work of art ?
(Q7458905,P495,Q30)
action is_in
entity Q30
action find
entity Q7458905
relation P495
['Q7458905', 'P495', 'Q30']
ASK WHERE { resource:Q7458905 property:P495 resource:Q30 }
Sexy Sluts: Been There, Done That United States of America
action is_in
entity United States of America
action find
entity Sexy Sluts: Been There, Done That
relation country of origin
['Sexy Sluts: Been There, Done That', 'country of origin', 'United States of America']
ASK WHERE { resource:Sexy_Sluts:_Been_There,_Done_That property:country_of_origin resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q7458905,P495,Q30)
action is_in
entity Q30
action find
entity Q7458905
relation P495
[ANSWER]
['Q7458905', 'P495', 'Q30']
ASK WHERE { resource:Q7458905 property:P495 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Sexy Sluts: Been There, Done That
relation country of origin
['Sexy Sluts: Been There, Done That', 'country of origin', 'United States of America']
ASK WHERE { resource:Sexy_Sluts:_Been_There,_Done_That property:country_of_origin resource:United_States_of_America }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1203222
P1445
Q838948 Q386724
USER
Which works are recounted in around the same number of works of art as Shrek ?
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q1203222
relation P1445
type Q386724
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?y ) WHERE { ?m property:P1445 ?d . ?m rdf:type ontology:Q386724 . ?d rdf:type ontology:Q838948 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q1203222 property:P1445 ?e . ?e rdf:type ontology:Q386724 } } . FILTER ( ?y = ?f ) }
Shrek
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Shrek
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?y ) WHERE { ?m property:fictional_universe_described_in ?d . ?m rdf:type ontology:work . ?d rdf:type ontology:work_of_art } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Shrek property:fictional_universe_described_in ?e . ?e rdf:type ontology:work } } . FILTER ( ?y = ?f ) }
[]
work of art work
Q1203222 Q15731902 Q11927
SYSTEM
Shrek, Aladdin media franchise, Stargate
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q1203222
relation P1445
type Q386724
[ANSWERS] are recounted in around the same number of works of art as Shrek
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?y ) WHERE { ?m property:P1445 ?d . ?m rdf:type ontology:Q386724 . ?d rdf:type ontology:Q838948 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q1203222 property:P1445 ?e . ?e rdf:type ontology:Q386724 } } . FILTER ( ?y = ?f ) }
Shrek Aladdin media franchise Stargate The Walking Dead
Shrek, Aladdin media franchise and Stargate are recounted in around the same number of works of art as Shrek
Shrek Aladdin media franchise Stargate
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Shrek
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?y ) WHERE { ?m property:fictional_universe_described_in ?d . ?m rdf:type ontology:work . ?d rdf:type ontology:work_of_art } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Shrek property:fictional_universe_described_in ?e . ?e rdf:type ontology:work } } . FILTER ( ?y = ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q11927
P1445
Q838948 Q386724
USER
And how about Stargate?
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q11927
relation P1445
type Q386724
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?b ) WHERE { ?o rdf:type ontology:Q386724 . ?m rdf:type ontology:Q838948 . ?o property:P1445 ?m } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Q11927 property:P1445 ?i . ?i rdf:type ontology:Q386724 } } . FILTER ( ?b = ?r ) }
Stargate
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Stargate
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?b ) WHERE { ?o rdf:type ontology:work . ?m rdf:type ontology:work_of_art . ?o property:fictional_universe_described_in ?m } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Stargate property:fictional_universe_described_in ?i . ?i rdf:type ontology:work } } . FILTER ( ?b = ?r ) }
[]
work of art work
Q1203222 Q15731902 Q11927
SYSTEM
Shrek, Aladdin media franchise, Stargate
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q11927
relation P1445
type Q386724
[ANSWERS]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?b ) WHERE { ?o rdf:type ontology:Q386724 . ?m rdf:type ontology:Q838948 . ?o property:P1445 ?m } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Q11927 property:P1445 ?i . ?i rdf:type ontology:Q386724 } } . FILTER ( ?b = ?r ) }
Shrek Aladdin media franchise Stargate The Walking Dead
Shrek Aladdin media franchise Stargate
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Stargate
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?b ) WHERE { ?o rdf:type ontology:work . ?m rdf:type ontology:work_of_art . ?o property:fictional_universe_described_in ?m } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Stargate property:fictional_universe_described_in ?i . ?i rdf:type ontology:work } } . FILTER ( ?b = ?r ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q19564327 Q7458905
P27 P495
Q15617994
USER
Which administrative territories are the countries of origin of Sexy Sluts: Been There, Done That and are the native countriesof Tasso J. Kaper ?
AND((Q7458905,P495,c(Q15617994)), (Q19564327,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q7458905
relation P495
action find
entity Q19564327
relation P27
type Q15617994
{'AND': [['Q7458905', 'P495', {'concept': 'Q15617994'}], ['Q19564327', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { resource:Q7458905 property:P495 ?v . resource:Q19564327 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Tasso J. Kaper Sexy Sluts: Been There, Done That
action filter_type
action intersection
action find
entity Sexy Sluts: Been There, Done That
relation country of origin
action find
entity Tasso J. Kaper
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Sexy Sluts: Been There, Done That', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Tasso J. Kaper', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Sexy_Sluts:_Been_There,_Done_That property:country_of_origin ?v . resource:Tasso_J._Kaper property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q7458905,P495,c(Q15617994)), (Q19564327,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q7458905
relation P495
action find
entity Q19564327
relation P27
type Q15617994
[ANSWER] is the countries of origin of Sexy Sluts: Been There, Done That and is the native countriesof Tasso J. Kaper
{'AND': [['Q7458905', 'P495', {'concept': 'Q15617994'}], ['Q19564327', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { resource:Q7458905 property:P495 ?v . resource:Q19564327 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
United States of America
United States of America is the countries of origin of Sexy Sluts: Been There, Done That and is the native countriesof Tasso J. Kaper
United States of America
action filter_type
action intersection
action find
entity Sexy Sluts: Been There, Done That
relation country of origin
action find
entity Tasso J. Kaper
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Sexy Sluts: Been There, Done That', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Tasso J. Kaper', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Sexy_Sluts:_Been_There,_Done_That property:country_of_origin ?v . resource:Tasso_J._Kaper property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with exactly 5 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 5
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?u ) WHERE { ?p property:P530 ?h . ?p rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?u = 5 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?u ) WHERE { ?p property:diplomatic_relation ?h . ?p rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?u = 5 ) }
[]
designation for an administrative territorial entity political territorial entity
Q40
SYSTEM
Austria
Q40
(c(Q1048835),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 5
[ANSWER] have ambassadorial relations with exactly 5 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?u ) WHERE { ?p property:P530 ?h . ?p rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?u = 5 ) }
Austria
Austria have ambassadorial relations with exactly 5 administrative territories
Austria
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?u ) WHERE { ?p property:diplomatic_relation ?h . ?p rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?u = 5 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q766
P530
Q1048835 Q1048835
USER
How many political territories have ambassadorial relations with greater number of political territories than Jamaica ?
(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 Q766
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?n ) WHERE { ?v property:P530 ?t . ?v rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Q766 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?n > ?p ) }
Jamaica
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?n ) WHERE { ?v property:diplomatic_relation ?t . ?v rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Jamaica property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?n > ?p ) }
[]
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 Q766
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?n ) WHERE { ?v property:P530 ?t . ?v rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Q766 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?n > ?p ) }
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?n ) WHERE { ?v property:diplomatic_relation ?t . ?v rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Jamaica property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?n > ?p ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q56061 Q486972
USER
Which administrative territories have atleast 2 administrative territories or human settlements as their capital ?
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
value 2
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?g ) WHERE { { ?v property:P1376 ?b . ?b rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q56061 } UNION { ?v property:P1376 ?b . ?v rdf:type ontology:Q486972 . ?b rdf:type ontology:Q15617994 } } GROUP BY ?b } . FILTER ( ?g >= 2 ) }
action atleast
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
value 2
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?g ) WHERE { { ?v property:capital_of ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:administrative_territorial_entity } UNION { ?v property:capital_of ?b . ?v rdf:type ontology:human_settlement . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?b } . FILTER ( ?g >= 2 ) }
[]
designation for an administrative territorial entity administrative territorial entity human settlement
Q38 Q30 Q805
SYSTEM
Italy, United States of America, Yemen
Q805 Q258 Q1020 Q41 Q30 Q38 Q199688 Q12536 Q517333 Q160307
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
value 2
[ANSWERS] have atleast 2 administrative territories or human settlements as their capital
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?g ) WHERE { { ?v property:P1376 ?b . ?b rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q56061 } UNION { ?v property:P1376 ?b . ?v rdf:type ontology:Q486972 . ?b rdf:type ontology:Q15617994 } } GROUP BY ?b } . FILTER ( ?g >= 2 ) }
Yemen South Africa Malawi Greece United States of America Italy Almohad Abbasid caliphate Principality of Polotsk Fatimid caliphate
Italy, United States of America and Yemen have atleast 2 administrative territories or human settlements as their capital
Italy United States of America Yemen
action atleast
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
value 2
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?g ) WHERE { { ?v property:capital_of ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:administrative_territorial_entity } UNION { ?v property:capital_of ?b . ?v rdf:type ontology:human_settlement . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?b } . FILTER ( ?g >= 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q15617994 Q7725634 Q15416
USER
Which administrative territories are the countries of origin of max number of literary works or television programs ?
(c(Q7725634)|c(Q15416),P495,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
[[{'concept': 'Q7725634'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?v ) { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { { ?a property:P495 ?x . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15416 } UNION { ?a property:P495 ?x . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q7725634 } } GROUP BY ?x } } . { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?o ) WHERE { ?z rdf:type ?i . VALUES ( ?i ) { ( ontology:Q7725634 ) ( ontology:Q15416 ) } } GROUP BY ?u } . FILTER ( ?o = ?v ) }
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
[[{'concept': 'literary work'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?v ) { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { { ?a property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:television_program } UNION { ?a property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:literary_work } } GROUP BY ?x } } . { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?o ) WHERE { ?z rdf:type ?i . VALUES ( ?i ) { ( ontology:literary_work ) ( ontology:television_program ) } } GROUP BY ?u } . FILTER ( ?o = ?v ) }
[]
designation for an administrative territorial entity literary work television program
Q30
SYSTEM
United States of America
Q30
(c(Q7725634)|c(Q15416),P495,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
[ANSWER] is the countries of origin of max number of literary works or television programs
[[{'concept': 'Q7725634'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?v ) { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { { ?a property:P495 ?x . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15416 } UNION { ?a property:P495 ?x . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q7725634 } } GROUP BY ?x } } . { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?o ) WHERE { ?z rdf:type ?i . VALUES ( ?i ) { ( ontology:Q7725634 ) ( ontology:Q15416 ) } } GROUP BY ?u } . FILTER ( ?o = ?v ) }
United States of America
United States of America is the countries of origin of max number of literary works or television programs
United States of America
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
[[{'concept': 'literary work'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?v ) { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { { ?a property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:television_program } UNION { ?a property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:literary_work } } GROUP BY ?x } } . { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?o ) WHERE { ?z rdf:type ?i . VALUES ( ?i ) { ( ontology:literary_work ) ( ontology:television_program ) } } GROUP BY ?u } . FILTER ( ?o = ?v ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q40
P530
Q1048835
USER
How many political territories have a diplomatic relationship with Austria ?
(Q40,P530,c(Q1048835))
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
['Q40', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b rdf:type ontology:Q1048835 . resource:Q40 property:P530 ?b }
Austria
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
['Austria', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Austria property:diplomatic_relation ?b }
[]
political territorial entity
SYSTEM
2
Q183 Q408
(Q40,P530,c(Q1048835))
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWER]
['Q40', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b rdf:type ontology:Q1048835 . resource:Q40 property:P530 ?b }
Germany Australia
2
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
['Austria', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Austria property:diplomatic_relation ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q230
P530
Q1048835
USER
And what about Georgia?
(Q230,P530,c(Q1048835))
action count
action filter_type
action find
entity Q230
relation P530
type Q1048835
['Q230', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Q230 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
Georgia
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type political territorial entity
['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Georgia property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
11
Q664 Q408 Q40 Q35 Q183 Q16 Q1000 Q769 Q766 Q778 Q781
(Q230,P530,c(Q1048835))
action count
action filter_type
action find
entity Q230
relation P530
type Q1048835
[ANSWER]
['Q230', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Q230 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
New Zealand Australia Austria Denmark Germany Canada Gabon Grenada Jamaica The Bahamas Antigua and Barbuda
11
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type political territorial entity
['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Georgia property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q38
Q1048835
USER
And what about Italy?
(Q38,P530,c(Q1048835))
action count
action filter_type
action find
entity Q38
relation P530
type Q1048835
['Q38', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:Q38 property:P530 ?v . ?v rdf:type ontology:Q1048835 }
Italy
action count
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:Italy property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
6
(Q38,P530,c(Q1048835))
action count
action filter_type
action find
entity Q38
relation P530
type Q1048835
[ANSWER]
['Q38', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:Q38 property:P530 ?v . ?v rdf:type ontology:Q1048835 }
6
action count
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:Italy property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q778
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with more number of administrative territories than The Bahamas ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?w > ?v ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:Q778 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?w ) WHERE { ?a property:P530 ?c . ?a rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?a } }
The Bahamas
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 The Bahamas
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?w > ?v ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:The_Bahamas property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?w ) WHERE { ?a property:diplomatic_relation ?c . ?a rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q15617994
[ANSWERS] have tactful political relations with more number of administrative territories than The Bahamas
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?w > ?v ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:Q778 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?w ) WHERE { ?a property:P530 ?c . ?a rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?a } }
Austria Germany Australia Denmark Canada New Zealand Jamaica
Germany, Australia and Denmark have tactful political relations with more number of administrative territories than The Bahamas
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 The Bahamas
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?w > ?v ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:The_Bahamas property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?w ) WHERE { ?a property:diplomatic_relation ?c . ?a rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q769
P530
Q15617994 Q1048835
USER
And how about Grenada?
(c(Q1048835),P530,c(Q15617994))
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': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?v ) WHERE { ?y property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Q769 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?v > ?f ) }
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': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?v ) WHERE { ?y property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Grenada property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v > ?f ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
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': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?v ) WHERE { ?y property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Q769 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?v > ?f ) }
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': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?v ) WHERE { ?y property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Grenada property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v > ?f ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q953
P530
Q15617994
USER
Do Zambia have ambassadorial relations with those political territories ?
(Q953,P530,Q183) (Q953,P530,Q408) (Q953,P530,Q35)
action is_in
entity prev_answer
action find
entity Q953
relation P530
['Q953', 'P530', 'Q183'] ['Q953', 'P530', 'Q408'] ['Q953', 'P530', 'Q35']
ASK WHERE { VALUES ( ?z ) { ( resource:Q40 ) ( resource:Q183 ) ( resource:Q408 ) } . resource:Q953 property:P530 ?z }
Zambia
action is_in
entity prev_answer
action find
entity Zambia
relation diplomatic relation
['Zambia', 'diplomatic relation', 'Germany'] ['Zambia', 'diplomatic relation', 'Australia'] ['Zambia', 'diplomatic relation', 'Denmark']
ASK WHERE { VALUES ( ?z ) { ( resource:Austria ) ( resource:Germany ) ( resource:Australia ) } . resource:Zambia property:diplomatic_relation ?z }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q953,P530,Q183) (Q953,P530,Q408) (Q953,P530,Q35)
action is_in
entity prev_answer
action find
entity Q953
relation P530
[ANSWER]
['Q953', 'P530', 'Q183'] ['Q953', 'P530', 'Q408'] ['Q953', 'P530', 'Q35']
ASK WHERE { VALUES ( ?z ) { ( resource:Q40 ) ( resource:Q183 ) ( resource:Q408 ) } . resource:Q953 property:P530 ?z }
Yes
action is_in
entity prev_answer
action find
entity Zambia
relation diplomatic relation
['Zambia', 'diplomatic relation', 'Germany'] ['Zambia', 'diplomatic relation', 'Australia'] ['Zambia', 'diplomatic relation', 'Denmark']
ASK WHERE { VALUES ( ?z ) { ( resource:Austria ) ( resource:Germany ) ( resource:Australia ) } . resource:Zambia property:diplomatic_relation ?z }
[]