Simple Question (Direct)
Simple Question
Q3081945
P20
Q56061
USER
Where did the expiration of Francisco Solano Constancio occur ?
(Q3081945,P20,c(Q56061))
action filter_type
action find
entity Q3081945
relation P20
type Q56061
['Q3081945', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q3081945 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Francisco Solano Constancio
action filter_type
action find
entity Francisco Solano Constancio
relation place of death
type administrative territorial entity
['Francisco Solano Constancio', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Francisco_Solano_Constancio property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q3081945,P20,c(Q56061))
action filter_type
action find
entity Q3081945
relation P20
type Q56061
The expiration of Francisco Solano Constancio occurred in [ANSWER]
['Q3081945', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q3081945 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Paris
The expiration of Francisco Solano Constancio occurred in Paris
Paris
action filter_type
action find
entity Francisco Solano Constancio
relation place of death
type administrative territorial entity
['Francisco Solano Constancio', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Francisco_Solano_Constancio property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3081945
P7
Q502895
USER
Who has that one as their sibling ?
(c(Q502895),P7,Q90)
action filter_type
action find
entity Q3081945
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q90']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3081945 property:P7 ?q }
Francisco Solano Constancio
action filter_type
action find
entity Francisco Solano Constancio
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Paris']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Francisco_Solano_Constancio property:brother ?q }
[]
common name
Q15631832
SYSTEM
Pedro José Constâncio
Q15631832
(c(Q502895),P7,Q90)
action filter_type
action find
entity Q3081945
relation P7
type Q502895
[ANSWER] has that one as their sibling
[{'concept': 'Q502895'}, 'P7', 'Q90']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3081945 property:P7 ?q }
Pedro José Constâncio
Pedro José Constâncio has that one as their sibling
Pedro José Constâncio
action filter_type
action find
entity Francisco Solano Constancio
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Paris']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Francisco_Solano_Constancio property:brother ?q }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q26457246
P725
Q502895 Q386724
USER
Which works did less number of people dub for than Hércules y el arma secreta ?
(c(Q386724),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q386724
type Q502895
action count
action filter_type
action find
entity Q26457246
relation P725
type Q502895
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?n ) WHERE { ?i property:P725 ?m . ?i rdf:type ontology:Q386724 . ?m rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Q26457246 property:P725 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?n < ?f ) }
Hércules y el arma secreta
action less
action find_tuple_counts
relation voice actor
type work
type common name
action count
action filter_type
action find
entity Hércules y el arma secreta
relation voice actor
type common name
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?n ) WHERE { ?i property:voice_actor ?m . ?i rdf:type ontology:work . ?m rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Hércules_y_el_arma_secreta property:voice_actor ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?n < ?f ) }
[]
common name work
Q13516675 Q10864091 Q27627540
SYSTEM
Sakura Trick, Isshūkan Friends, Doctor Strange (Doctor Extraño)
Q10864091 Q27627540 Q24175397 Q26715049 Q25858085 Q13516675 Q26829863
(c(Q386724),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q386724
type Q502895
action count
action filter_type
action find
entity Q26457246
relation P725
type Q502895
[ANSWERS] less number of people dubbed for than Hércules y el arma secreta
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?n ) WHERE { ?i property:P725 ?m . ?i rdf:type ontology:Q386724 . ?m rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Q26457246 property:P725 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?n < ?f ) }
Isshūkan Friends Doctor Strange (Doctor Extraño) Capitán América: El primer vengador Peter y el dragón Alicia a través del espejo Sakura Trick Angry Birds: La película
Sakura Trick, Isshūkan Friends and Doctor Strange (Doctor Extraño) less number of people dubbed for than Hércules y el arma secreta
Sakura Trick Isshūkan Friends Doctor Strange (Doctor Extraño)
action less
action find_tuple_counts
relation voice actor
type work
type common name
action count
action filter_type
action find
entity Hércules y el arma secreta
relation voice actor
type common name
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?n ) WHERE { ?i property:voice_actor ?m . ?i rdf:type ontology:work . ?m rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Hércules_y_el_arma_secreta property:voice_actor ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?n < ?f ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2860592 Q3081945
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Francisco Solano Constancio or Johannes van Angeren ?
OR((Q3081945,P27,c(Q15617994)), (Q2860592,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3081945
relation P27
action find
entity Q2860592
relation P27
type Q15617994
{'OR': [['Q3081945', 'P27', {'concept': 'Q15617994'}], ['Q2860592', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q3081945 property:P27 ?l } UNION { resource:Q2860592 property:P27 ?l } } }
Johannes van Angeren Francisco Solano Constancio
action filter_type
action union
action find
entity Francisco Solano Constancio
relation country of citizenship
action find
entity Johannes van Angeren
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Francisco Solano Constancio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Johannes van Angeren', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Francisco_Solano_Constancio property:country_of_citizenship ?l } UNION { resource:Johannes_van_Angeren property:country_of_citizenship ?l } } }
[]
designation for an administrative territorial entity
Q45 Q29999
SYSTEM
Portugal, Kingdom of the Netherlands
Q45 Q29999
OR((Q3081945,P27,c(Q15617994)), (Q2860592,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3081945
relation P27
action find
entity Q2860592
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Francisco Solano Constancio or Johannes van Angeren
{'OR': [['Q3081945', 'P27', {'concept': 'Q15617994'}], ['Q2860592', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q3081945 property:P27 ?l } UNION { resource:Q2860592 property:P27 ?l } } }
Portugal Kingdom of the Netherlands
Portugal and Kingdom of the Netherlands are the countries of citizenship of Francisco Solano Constancio or Johannes van Angeren
Portugal Kingdom of the Netherlands
action filter_type
action union
action find
entity Francisco Solano Constancio
relation country of citizenship
action find
entity Johannes van Angeren
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Francisco Solano Constancio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Johannes van Angeren', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Francisco_Solano_Constancio property:country_of_citizenship ?l } UNION { resource:Johannes_van_Angeren property:country_of_citizenship ?l } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q40
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with more number of administrative territories than Austria ?
(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 Q40
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?a ) AS ?l ) WHERE { ?w property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Q40 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?c ) }
Austria
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 Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?a ) AS ?l ) WHERE { ?w property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Austria property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?c ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q183 Q408 Q16
(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 Q40
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with more number of administrative territories than Austria
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?a ) AS ?l ) WHERE { ?w property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Q40 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?c ) }
Germany Australia Canada
Germany, Australia and Canada have diplomatic relationships with more number of administrative territories than Austria
Germany Australia Canada
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 Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?a ) AS ?l ) WHERE { ?w property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Austria property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?c ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1058555 Q27627540
P57
Q502895
USER
Which people were Doctor Strange (Doctor Extraño) or Lorenzo's Oil directed by ?
OR((Q27627540,P57,c(Q502895)), (Q1058555,P57,c(Q502895)))
action filter_type
action union
action find
entity Q27627540
relation P57
action find
entity Q1058555
relation P57
type Q502895
{'OR': [['Q27627540', 'P57', {'concept': 'Q502895'}], ['Q1058555', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?a ) { ( resource:Q27627540 ) ( resource:Q1058555 ) } . ?a property:P57 ?y } . ?y rdf:type ontology:Q502895 }
Lorenzo's Oil Doctor Strange (Doctor Extraño)
action filter_type
action union
action find
entity Doctor Strange (Doctor Extraño)
relation director
action find
entity Lorenzo's Oil
relation director
type common name
{'OR': [['Doctor Strange (Doctor Extraño)', 'director', {'concept': 'common name'}], ["Lorenzo's Oil", 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?a ) { ( resource:Doctor_Strange_(Doctor_Extraño) ) ( resource:Lorenzo's_Oil ) } . ?a property:director ?y } . ?y rdf:type ontology:common_name }
[]
common name
Q23753030 Q446960
SYSTEM
Rafael Calvo, George Miller
Q23753030 Q446960
OR((Q27627540,P57,c(Q502895)), (Q1058555,P57,c(Q502895)))
action filter_type
action union
action find
entity Q27627540
relation P57
action find
entity Q1058555
relation P57
type Q502895
[ANSWERS] were Doctor Strange (Doctor Extraño) or Lorenzo's Oil directed by
{'OR': [['Q27627540', 'P57', {'concept': 'Q502895'}], ['Q1058555', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?a ) { ( resource:Q27627540 ) ( resource:Q1058555 ) } . ?a property:P57 ?y } . ?y rdf:type ontology:Q502895 }
Rafael Calvo George Miller
Rafael Calvo and George Miller were Doctor Strange (Doctor Extraño) or Lorenzo's Oil directed by
Rafael Calvo George Miller
action filter_type
action union
action find
entity Doctor Strange (Doctor Extraño)
relation director
action find
entity Lorenzo's Oil
relation director
type common name
{'OR': [['Doctor Strange (Doctor Extraño)', 'director', {'concept': 'common name'}], ["Lorenzo's Oil", 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?a ) { ( resource:Doctor_Strange_(Doctor_Extraño) ) ( resource:Lorenzo's_Oil ) } . ?a property:director ?y } . ?y rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P162
Q838948
USER
How many works of art have been produced by that person ?
(c(Q838948),P162,Q446960)
[{'concept': 'Q838948'}, 'P162', 'Q446960']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q13235160 resource:Q18730338 . ?z rdf:type ontology:Q838948 }
[{'concept': 'work of art'}, 'producer', 'George Miller']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:producer resource:George_Miller . ?z rdf:type ontology:work_of_art }
[]
work of art
Quantitative|Count|Single entity type|Clarification
Q446960
SYSTEM
Did you mean George Miller ?
(c(Q838948),P162,Q23753030) (c(Q838948),P162,Q446960)
[ANSWER]
[{'concept': 'Q838948'}, 'P162', 'Q23753030'] [{'concept': 'Q838948'}, 'P162', 'Q446960']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q13235160 resource:Q18730338 . ?z rdf:type ontology:Q838948 }
Did you mean George Miller ?
George Miller
[{'concept': 'work of art'}, 'producer', 'Rafael Calvo'] [{'concept': 'work of art'}, 'producer', 'George Miller']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:producer resource:George_Miller . ?z rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q838948),P162,Q446960)
[{'concept': 'Q838948'}, 'P162', 'Q446960']
[{'concept': 'work of art'}, 'producer', 'George Miller']
[]
SYSTEM
7
Q7760685 Q1169123 Q845077 Q1757288 Q720724 Q1058555 Q127665
(c(Q838948),P162,Q446960)
[ANSWER]
[{'concept': 'Q838948'}, 'P162', 'Q446960']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q13235160 resource:Q18730338 . ?z rdf:type ontology:Q838948 }
The Riddle of the Stinson The Year My Voice Broke Dead Calm Mad Max: Fury Road Babe Lorenzo's Oil Flirting
7
[{'concept': 'work of art'}, 'producer', 'George Miller']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:producer resource:George_Miller . ?z rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4780211 Q1058555
P161
Q502895
USER
Which people starred in Lorenzo's Oil or Apokal ?
OR((Q1058555,P161,c(Q502895)), (Q4780211,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1058555
relation P161
action find
entity Q4780211
relation P161
type Q502895
{'OR': [['Q1058555', 'P161', {'concept': 'Q502895'}], ['Q4780211', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q1058555 property:P161 ?c } UNION { resource:Q4780211 property:P161 ?c } } . ?c rdf:type ontology:Q502895 }
Apokal Lorenzo's Oil
action filter_type
action union
action find
entity Lorenzo's Oil
relation cast member
action find
entity Apokal
relation cast member
type common name
{'OR': [["Lorenzo's Oil", 'cast member', {'concept': 'common name'}], ['Apokal', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Lorenzo's_Oil property:cast_member ?c } UNION { resource:Apokal property:cast_member ?c } } . ?c rdf:type ontology:common_name }
[]
common name
Q726140 Q1368437 Q55796 Q5237344 Q2313940 Q6780686 Q22987791 Q257317 Q1108751 Q63304
SYSTEM
Some of them are James Rebhorn, James Merrill, Peter Ustinov, David McFadden, Becky Ann Baker, Mary Schmidt Campbell, Colin Ward, Margo Martindale, Colin Ward, Kathleen Wilhoite
Q19631403 Q13422709 Q5237344 Q43874 Q2849808 Q5239745 Q726140 Q7938544 Q7324895 Q22987807 Q22987865 Q22574138 Q441634 Q63304 Q6780686 Q2322541 Q2850389 Q1108751 Q22987775 Q22987770 Q139850 Q188018 Q133050 Q22987779 Q257317 Q7417264 Q2558129 Q100417 Q10348945 Q3194766 Q6780492 Q531532 Q223281 Q22987859 Q3308419 Q22987813 Q22807849 Q2079394 Q55796 Q22987791 Q22987872 Q258255 Q793337 Q1368437 Q2313940 Q22808262 Q7050088 Q3568475 Q2261425
OR((Q1058555,P161,c(Q502895)), (Q4780211,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1058555
relation P161
action find
entity Q4780211
relation P161
type Q502895
[ANSWERS] starred in Lorenzo's Oil or Apokal
{'OR': [['Q1058555', 'P161', {'concept': 'Q502895'}], ['Q4780211', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q1058555 property:P161 ?c } UNION { resource:Q4780211 property:P161 ?c } } . ?c rdf:type ontology:Q502895 }
Paul Lazar Aaron Jackson David McFadden Eddie Murphy Angus Barnett David Shiner James Rebhorn Vladimir Padunov Richard Cordery Helena Ruoti Mary Schmidt Campbell Joyce Reehling LaTanya Richardson Kathleen Wilhoite Mary Schmidt Campbell Amelia Campbell Ann Hearn Colin Ward Mary Wakio Maduka Steady Zack O'Malley Greenburg Nick Nolte Susan Sarandon Don Suddaby Margo Martindale Sandy Gore Ann Dowd Tilo Prückner Peter MacKenzie Keith Reddin Mary Pat Gleason Jennifer Dundas Laura Linney Barbara Poitier Michael O'Neill Luis Ruiz Ann McDonough Rocco Sisto Peter Ustinov Colin Ward William Thunhurst Jr. Elizabeth Daily Ayub K. Ommaya James Merrill Becky Ann Baker Lianne Kressin Nora Dunfee William Cameron Gerry Bamman
James Rebhorn, James Merrill, Peter Ustinov, David McFadden, Becky Ann Baker, Mary Schmidt Campbell, Colin Ward, Margo Martindale, Colin Ward and Kathleen Wilhoite starred in Lorenzo's Oil or Apokal
James Rebhorn James Merrill Peter Ustinov David McFadden Becky Ann Baker Mary Schmidt Campbell Colin Ward Margo Martindale Colin Ward Kathleen Wilhoite
action filter_type
action union
action find
entity Lorenzo's Oil
relation cast member
action find
entity Apokal
relation cast member
type common name
{'OR': [["Lorenzo's Oil", 'cast member', {'concept': 'common name'}], ['Apokal', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Lorenzo's_Oil property:cast_member ?c } UNION { resource:Apokal property:cast_member ?c } } . ?c rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q15631832
P21 P7
Q502895
USER
Which people have Pedro José Constâncio as their brother and have the gender as male ?
AND((c(Q502895),P7,Q15631832), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q15631832
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q15631832'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P7 resource:Q15631832 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
male Pedro José Constâncio
action filter_type
action intersection
action find_reverse
entity Pedro José Constâncio
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Pedro José Constâncio'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:brother resource:Pedro_José_Constâncio . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
common name
Q3081945
SYSTEM
Francisco Solano Constancio
Q3081945
AND((c(Q502895),P7,Q15631832), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q15631832
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Pedro José Constâncio as their brother and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q15631832'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P7 resource:Q15631832 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
Francisco Solano Constancio
Francisco Solano Constancio have Pedro José Constâncio as their brother and have the gender as male
Francisco Solano Constancio
action filter_type
action intersection
action find_reverse
entity Pedro José Constâncio
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Pedro José Constâncio'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:brother resource:Pedro_José_Constâncio . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q12751
P36
Q56061 Q515 Q15617994
USER
Which administrative territories have around the same number of administrative territories and cities as their capital as Haute-Savoie ?
(c(Q15617994),P36,c(Q56061)|c(Q515))
action approx
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q12751
relation P36
type Q56061
type Q515
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?l WHERE { { ?l property:P36 ?e . ?l rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q56061 } UNION { ?l rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q515 . ?l property:P36 ?e } } GROUP BY ?l } . FILTER ( ?g = ?j ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { VALUES ( ?f ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?t rdf:type ?f } . resource:Q12751 property:P36 ?t } } }
Haute-Savoie
action approx
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Haute-Savoie
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?l WHERE { { ?l property:capital ?e . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:administrative_territorial_entity } UNION { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:city . ?l property:capital ?e } } GROUP BY ?l } . FILTER ( ?g = ?j ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { VALUES ( ?f ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?t rdf:type ?f } . resource:Haute-Savoie property:capital ?t } } }
[]
administrative territorial entity city designation for an administrative territorial entity
Q224 Q739 Q965
SYSTEM
Croatia, Colombia, Burkina Faso
Q12631 Q2991354 Q3368 Q1111401 Q504637 Q2998020 Q3044731 Q2466631 Q12689 Q2527360 Q699731 Q3377 Q3372 Q1742192 Q3093 Q4464924 Q2344966 Q3259 Q12594 Q739 Q733 Q16628524 Q12798 Q12792 Q1284 Q1443 Q541811 Q1458 Q14551680 Q12700 Q12703 Q12709 Q12569 Q12574 Q12642 Q21296012 Q3216 Q3194 Q541589 Q12804 Q12808 Q1961264 Q3326 Q3286 Q12589 Q3266 Q3105 Q731547 Q33788 Q709 Q12740 Q12745 Q12779 Q2093388 Q12607 Q290739 Q598193 Q12576 Q1452646 Q2281221 Q1508919 Q12694 Q12515 Q12517 Q3364 Q3148 Q5613245 Q280312 Q12675 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q3118738 Q686312 Q697 Q12730 Q12736 Q2039306 Q662056 Q12657 Q12652 Q12556 Q694594 Q874 Q12816 Q4854468 Q2528268 Q3353 Q3357 Q492437 Q389004 Q492430 Q3278 Q3184 Q9073753 Q2900529 Q12772 Q1090678 Q19786899 Q1999970 Q155019 Q2348751 Q107426 Q511365 Q1270568 Q34762 Q793437 Q1270623 Q580447 Q10957559 Q965 Q962 Q2344833 Q3125 Q3120 Q3110307 Q12722 Q2039314 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q474421 Q3349 Q3083 Q3249 Q3164 Q12761 Q12765 Q224 Q691265 Q313175 Q3334 Q12572 Q2996404 Q12578 Q12679 Q3846423 Q176 Q161258 Q4496152 Q3514973 Q3113 Q12789 Q1234961 Q1222 Q5192588 Q672 Q12758 Q12753 Q12751 Q12564
(c(Q15617994),P36,c(Q56061)|c(Q515))
action approx
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q12751
relation P36
type Q56061
type Q515
[ANSWERS] have around the same number of administrative territories and cities as their capital as Haute-Savoie
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?l WHERE { { ?l property:P36 ?e . ?l rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q56061 } UNION { ?l rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q515 . ?l property:P36 ?e } } GROUP BY ?l } . FILTER ( ?g = ?j ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { VALUES ( ?f ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?t rdf:type ?f } . resource:Q12751 property:P36 ?t } } }
Meuse Aquiles Serdán Municipality Essonne Kispest District Alta Verapaz Department Corse Guyane Chiautla de Tapia Municipality Pas-de-Calais Stura Wied Eure-et-Loir Eure King's Lynn and West Norfolk Aisne Tugulymsky District Netrokona District Cantal Marne Colombia Paraguay San Salvador el Verde municipality Vendée Vaucluse Abruzzo Molise Ems-Oriental Calabria Principality of Lippe Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Loiret Morbihan Amatitlán Aveyron Aube Ems-Supérieur Vienne Haute-Vienne Tecámac Municipality Corrèze Cher Manche Charente Vosges Lippe New Caledonia Marshall Islands Sarthe Savoie Tarn-et-Garonne Sunamganj District Haute-Marne Sesia Apennins Lot Montenotte Principality of Orange Marengo Puy-de-Dôme Gard Gers Drôme Ardèche Guadalupe Municipality Principality of Lüneburg Oise Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Guanentá Province Duchy of Amalfi Nauru Haute-Saône Saône-et-Loire Jamalpur District Cushamen Department Nièvre Moselle Indre-et-Loire Bremen-Verden Turkmenistan Yonne Bandava Mont-Blanc Creuse Dordogne Bouches-du-Weser Wallachia Bouches-de-l'Elbe Charente-Maritime Ariège San Vicente Tancuayalab municipality Bezirk Lothringen Tarn Sègre Magyaróvár District Upper Alsace Duchy of Lorraine Kurigram District Anjou Arvika Municipality Ems Principality of Bayreuth Bergantiños Meurthe Duchy of Styria Moldavia Burkina Faso Benin Kishoreganj District Hautes-Alpes Jura Golo Haut-Rhin Sherpur District Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Principality of Fürstenberg Côtes-d'Armor Ain Calvados Ardennes Seine-Saint-Denis Deux-Sèvres Croatia Mont-Terrible Saxe-Lauenburg Haute-Corse Haute-Loire Alushta municipality Lot-et-Garonne Orne Viesca Municipality Quebec Clipperton Island Khartsyzk Municipality Tanaro Allier Var Doire Aosta Valley Cuenca District, Huancavelica Tuvalu Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
Croatia, Colombia and Burkina Faso have around the same number of administrative territories and cities as their capital as Haute-Savoie
Croatia Colombia Burkina Faso
action approx
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Haute-Savoie
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?l WHERE { { ?l property:capital ?e . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:administrative_territorial_entity } UNION { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:city . ?l property:capital ?e } } GROUP BY ?l } . FILTER ( ?g = ?j ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { VALUES ( ?f ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?t rdf:type ?f } . resource:Haute-Savoie property:capital ?t } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1042
P36
Q56061 Q515 Q15617994
USER
And also tell me about Seychelles?
(c(Q15617994),P36,c(Q56061)|c(Q515))
action approx
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q1042
relation P36
type Q56061
type Q515
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?q ) WHERE { { ?w property:P36 ?t . ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q515 } UNION { ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q56061 . ?w property:P36 ?t } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { { ?p rdf:type ontology:Q56061 } UNION { ?p rdf:type ontology:Q515 } } . resource:Q1042 property:P36 ?p } } . FILTER ( ?q = ?a ) }
Seychelles
action approx
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Seychelles
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?q ) WHERE { { ?w property:capital ?t . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:city } UNION { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:administrative_territorial_entity . ?w property:capital ?t } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { { ?p rdf:type ontology:administrative_territorial_entity } UNION { ?p rdf:type ontology:city } } . resource:Seychelles property:capital ?p } } . FILTER ( ?q = ?a ) }
[]
administrative territorial entity city designation for an administrative territorial entity
Q38 Q159 Q55
SYSTEM
Italy, Russia, Netherlands
Q805 Q804 Q1815665 Q801 Q800 Q1098820 Q419 Q414 Q55 Q783 Q784 Q786 Q568833 Q1452650 Q2980110 Q4308116 Q17301635 Q399 Q398 Q1465069 Q1324549 Q1979 Q159 Q1664120 Q12526 Q1974 Q611074 Q2007299 Q1616549 Q1254171 Q979470 Q684030 Q1270648 Q3563282 Q1899307 Q30675 Q983 Q730 Q734 Q736 Q1280 Q1282 Q384731 Q1816477 Q1273 Q1279 Q1025 Q1049 Q1027 Q189 Q843 Q2007 Q184 Q1029 Q1028 Q1850485 Q1390630 Q1452 Q815731 Q31074 Q31075 Q96 Q1050 Q12175285 Q2629701 Q311803 Q12717 Q298 Q29937 Q115 Q114 Q117 Q30786 Q1270638 Q1788988 Q239502 Q1544445 Q466061 Q1515346 Q683 Q1483510 Q3924533 Q12559 Q1270636 Q281435 Q34020 Q891165 Q696651 Q3528124 Q2719360 Q948 Q1243 Q945 Q3564819 Q3500767 Q855327 Q328134 Q1268811 Q1237 Q701 Q702 Q968630 Q705 Q707 Q4450475 Q2565377 Q668 Q1093 Q1090684 Q1263830 Q833 Q4055266 Q836 Q837 Q2305610 Q565812 Q1460 Q2068764 Q1462 Q403 Q691890 Q45 Q43 Q792 Q790 Q796 Q794 Q174280 Q1232680 Q889 Q884 Q881 Q231168 Q241 Q1965 Q242 Q1437719 Q1244497 Q29965 Q33 Q32 Q31 Q37 Q36 Q34 Q3361 Q39 Q38 Q302479 Q541095 Q2567535 Q3068 Q3389 Q30644 Q236 Q1886098 Q232 Q233 Q1777256 Q238 Q12549 Q129003 Q1763301 Q1101 Q1206596 Q511806 Q27495866 Q3139 Q902 Q1036 Q1037 Q1032 Q1030 Q1024985 Q1039 Q694 Q695 Q754 Q752 Q750 Q2562901 Q31068 Q220249 Q31067 Q31065 Q654849 Q1773268 Q30835 Q30831 Q574 Q1558632 Q894970 Q191 Q79 Q77 Q878 Q46130 Q2001115 Q3044651 Q3044714 Q3044715 Q2091235 Q23055454 Q12247340 Q2360973 Q30682 Q30683 Q1951 Q2236821 Q2006764 Q1952 Q669802 Q753795 Q1256 Q1250 Q452565 Q3305157 Q1480778 Q2567507 Q3044623 Q651394 Q3646838 Q2391254 Q3044781 Q2371735 Q712 Q711 Q710 Q717 Q3044777 Q12770 Q2465553 Q657 Q1789890 Q12538 Q954 Q1393469 Q953 Q2001966 Q795587 Q958 Q986 Q219 Q957825 Q2629652 Q826 Q822 Q689837 Q1142326 Q153136 Q2621010 Q1974486 Q153091 Q693658 Q769680 Q1508927 Q1948 Q30805 Q311794 Q12661 Q20 Q27 Q28 Q1366860 Q148 Q227 Q225 Q30650 Q223 Q30656 Q221 Q47261 Q311668 Q229 Q347 Q1410315 Q1989 Q60011 Q967 Q963 Q2921370 Q2921378 Q1991827 Q2429432 Q2310748 Q252157 Q1210 Q1216 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1786286 Q1009 Q1008 Q3509886 Q2380910 Q1438 Q686 Q30832 Q760 Q817 Q810 Q811 Q813 Q18046648 Q819 Q2038939 Q29 Q617646 Q72670 Q12545 Q2309262 Q863 Q2023 Q869 Q2093352 Q30946 Q568751 Q334714 Q15116736 Q2150573 Q142 Q685048 Q29943 Q145 Q262 Q2009 Q12820 Q265 Q3342 Q842 Q2344570 Q378004 Q1150452 Q691368 Q1263 Q475035 Q2995277 Q2003 Q3240 Q2662372 Q2565339 Q686924 Q1429976 Q24089916 Q30669 Q1985120 Q30662 Q2629323 Q4628 Q455705 Q2564823 Q2043690 Q770 Q1856181 Q1077283 Q921 Q4712 Q928 Q929 Q858 Q423 Q424 Q851 Q29999 Q854 Q2226837 Q165763 Q1338277 Q1447 Q2360428 Q222 Q2565327 Q2588405 Q1045 Q1044 Q1042 Q1041 Q31070 Q3336 Q1984191 Q30797 Q1904 Q228 Q3462133 Q30815 Q1429761 Q153402 Q3207 Q894973 Q894972 Q894971 Q2617427 Q1053888 Q3044677 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q244 Q1090691 Q977 Q2218506 Q692290 Q974 Q971 Q970 Q4464271 Q2502354 Q30630 Q775 Q774 Q776 Q1019 Q773 Q772 Q1014 Q1016 Q1011 Q1013 Q678 Q2565367 Q8575586 Q1579364 Q31079 Q2629692 Q549746 Q695660
(c(Q15617994),P36,c(Q56061)|c(Q515))
action approx
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q1042
relation P36
type Q56061
type Q515
[ANSWERS]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?q ) WHERE { { ?w property:P36 ?t . ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q515 } UNION { ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q56061 . ?w property:P36 ?t } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { { ?p rdf:type ontology:Q56061 } UNION { ?p rdf:type ontology:Q515 } } . resource:Q1042 property:P36 ?p } } . FILTER ( ?q = ?a ) }
Yemen Panama Znaur Israel Costa Rica Gênes Peru Argentina Netherlands Honduras Dominica Dominican Republic Meuse-Inférieure Ombrone Yovon District Murmansk Okrug Orihuela Governorate Armenia Bahrain Frise Uthukela District Municipality Prince Edward Island Russia Alfred Nzo District Municipality Gironde British Columbia Mopani District Municipality OR Tambo District Municipality Ivittuut Municipality Dr Ruth Segomotsi Mompati District Municipality Seine-et-Oise Principality of Serbia Sieg Rumi District Overberg District Municipality Minya Governorate Equatorial Guinea Suriname Guyana Ecuador Umbria Lazio John Taolo Gaetsewe District Municipality Lejweleputswa District Municipality Tuscany Marche Mauritania Sudan Mauritius Iceland Pakistan Northwest Territories Belarus Mozambique Morocco Dhaka District Ourthe Basilicata Principality of Bulgaria Al Sharqia Governorate Qalyubia Governorate Mexico Swaziland Aravalli district Yevpatoria municipality Umgungundlovu District Municipality Bas-Rhin Chile Aswan Governorate Ethiopia Kenya Ghana Monufia Governorate Rhine Trasimène Kingdom of Galicia–Volhynia Sekhukhune District Municipality Petén Department Gert Sibande District Municipality Samoa Principality of Wales Province of Brescia Isère Ruhr Maulvi Bazar District Niue Bojanala Platinum District Municipality Saxe-Eisenach Tibre Duchy of Luxembourg Tunisia Veneto Togo Hamadoni District Norak District Kouilou Department 6th of October Governorate Dyle Trentino-South Tyrol North Holland Federated States of Micronesia Taro Zeeland Flevoland Talitsky District Danghara District India Limburg Montserrat Frances Baard District Municipality Malaysia Abyei District Myanmar Nepal Vhembe District Municipality Principality of Calenberg Sicily Archa Darugha Sardinia Serbia Corcyre Portugal Turkey El Salvador Haiti Iraq Iran San Juan de Jinotega Ithaque Afghanistan South Korea Vietnam Zuyderzée Cuba New Brunswick Belize Thabo Mofutsanyana District Municipality Ehlanzeni District Municipality Asyut Governorate Finland Luxembourg Belgium Lithuania Poland Sweden Doubs Switzerland Italy Ems-Occidental Rhin-et-Moselle Pô Loire-Atlantique Finistère Damietta Governorate Montenegro Pixley ka Seme District Municipality Kazakhstan Malta Dzerzhinsky District, Kaluga Oblast San Marino Ille-et-Vilaine French Southern and Antarctic Lands Barisal District North Brabant Deux-Nèthes North Slope Borough Corse Alpes-Maritimes Bangladesh Uganda Rwanda Niger Namibia Cacadu District Municipality Sao Tomé and Príncipe South Holland Palau Trinidad and Tobago Groningen Bolivia West Coast District Municipality Dakahlia Governorate Eden District Municipality Ismailia Governorate Qena Governorate Joe Gqabi District Municipality ZF Mgcawu District Municipality Gharbia Governorate Red Sea Governorate East Timor Rome Bouches-de-la-Meuse Estonia Egypt Uruguay United Arab Emirates Rhône Tepic, Nayarit (municipality) Louverture Ouest Ozama Ugu District Municipality Alpes-Maritimes Afrin Nahiya Duchy of Carniola Matrouh Governorate Beni Suef Governorate Alberta Rhône-et-Loire Xhariep District Municipality Nova Scotia Quiché Department Briceni District Liguria Friuli–Venezia Giulia Amajuba District Municipality Mella Comilla District Arno Cibao Ramensky District Los Guayos Municipality Farkhor District Sud Saky municipality Fiji Mongolia Kiribati Venezuela Nord Somme Shapsugsky National District Chad West Rand District Municipality Haute-Garonne Zimbabwe Jemmapes Zambia Company rule in India Escuintla South Sudan Eritrea Bulgaria Yssel-Supérieur Yalta municipality Maldives Lebanon Spanish Sahara Seine Habsburg Empire Principality of Vitebsk Cape Winelands District Municipality Duchy of Prussia Izabal Department Bornholm Méditerranée Manitoba Cairo Governorate iLembe District Municipality Nord Norway Ireland Hungary Escaut People's Republic of China Azerbaijan Bosnia and Herzegovina New Valley Governorate Greenland Faiyum Governorate Republic of Macedonia Duchy of Bavaria UThungulu District Municipality Cyprus Liechtenstein Fezile Dabi District Municipality Saskatchewan Kars Oblast Burundi Botswana Bouches-de-l'Èbre-Montserrat Bouches-de-l'Èbre Karelian National Okrug Sirajganj District Liamone Sarre Lombardy Piedmont Mali Bhutan Angola Guinea-Bissau Guinea Gambia Kuban Oblast Cameroon Côte d'Ivoire Sègre-Ter Duchy of Zaslawye Campania Vanuatu Giza Governorate Saint Lucia Kuwait Jordan Nicaragua Kyrgyzstan department Stad en Landen of Groningen Laos Sedibeng District Municipality Spain Namakwa District Municipality Batumi Oblast Hérault Zululand District Municipality Tajikistan Nunavut Thailand Sylhet District Kafr el-Sheikh Governorate Mont-Tonnerre Duchy of Athens Jaén District Unterelsaß France Simplon Alexandria Governorate United Kingdom Algeria Yukon Yvelines Uzbekistan Côte-d'Or Oman Rangpur District Forêts Dr Kenneth Kaunda District Municipality Léman Emilia-Romagna Helwan Governorate Dzau district Newfoundland and Labrador Bouches-du-Rhône Principality of Minsk Vose' District Mer-Égée Mymensingh District Pars Sohag Governorate Dinajpur District North Sinai Governorate Armyansk municipality Faroe Islands Amathole District Municipality Panj District Gali Municipality Friesland Nkangala District Municipality Chris Hani District Municipality Brunei Duchy of Burgundy Philippines Central African Republic Syria North Korea Cambodia Saudi Arabia Kingdom of the Netherlands Sri Lanka Umzinyathi District Municipality Waldeck Sambre-et-Meuse Apulia Tijuana Municipality Albania Muminobod District Shahrtuz District Somalia Sierra Leone Seychelles Senegal Suez Governorate Corse-du-Sud Ngaka Modiri Molema District Municipality Luxor Governorate Ontario Andorra Saxe-Coburg and Gotha South Sinai Governorate Patuakhali District Roer Aude Bouches-du-Rhin Bouches-de-l'Yssel Bouches-de-l'Escaut Ayn Central Karoo District Municipality Samaná Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Barbados Ter Djibouti Kineshemsky District Capricorn District Municipality Democratic Republic of the Congo Republic of the Congo Comoros Principality of Trubetsk Principality of Goroden Beheira Governorate Gelderland Guatemala Utrecht Madagascar Overijssel Drenthe Liberia Libya Cape Verde Lesotho Tonga Vakhsh District Umayyad Caliphate Lys Port Said Governorate Simferopol municipality Sisonke District Municipality Guatemala Department
Italy Russia Netherlands
action approx
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Seychelles
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?q ) WHERE { { ?w property:capital ?t . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:city } UNION { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:administrative_territorial_entity . ?w property:capital ?t } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { { ?p rdf:type ontology:administrative_territorial_entity } UNION { ?p rdf:type ontology:city } } . resource:Seychelles property:capital ?p } } . FILTER ( ?q = ?a ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with atleast 46 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 46
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?h ) WHERE { ?n property:P530 ?r . ?n rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?h >= 46 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 46
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?h ) WHERE { ?n property:diplomatic_relation ?r . ?n rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?h >= 46 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 46
[ANSWERS] have diplomatic relations with atleast 46 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?h ) WHERE { ?n property:P530 ?r . ?n rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?h >= 46 ) }
Germany Australia
Germany and Australia have diplomatic relations with atleast 46 administrative territories
Germany Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 46
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?h ) WHERE { ?n property:diplomatic_relation ?r . ?n rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?h >= 46 ) }
[]