Simple Question (Direct)
Simple Question
Q491572
P57
Q502895
USER
Which person directed Bichunmoo ?
(Q491572,P57,c(Q502895))
action filter_type
action find
entity Q491572
relation P57
type Q502895
['Q491572', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q491572 property:P57 ?r . ?r rdf:type ontology:Q502895 }
Bichunmoo
action filter_type
action find
entity Bichunmoo
relation director
type common name
['Bichunmoo', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Bichunmoo property:director ?r . ?r rdf:type ontology:common_name }
[]
common name
Q3196840
SYSTEM
Kim Yeong-jun
Q3196840
(Q491572,P57,c(Q502895))
action filter_type
action find
entity Q491572
relation P57
type Q502895
[ANSWER] directed Bichunmoo
['Q491572', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q491572 property:P57 ?r . ?r rdf:type ontology:Q502895 }
Kim Yeong-jun
Kim Yeong-jun directed Bichunmoo
Kim Yeong-jun
action filter_type
action find
entity Bichunmoo
relation director
type common name
['Bichunmoo', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Bichunmoo property:director ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q491572
P161
Q502895
USER
Which people starred in Bichunmoo ?
(Q491572,P161,c(Q502895))
action filter_type
action find
entity Q491572
relation P161
type Q502895
['Q491572', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q491572 property:P161 ?b }
Bichunmoo
action filter_type
action find
entity Bichunmoo
relation cast member
type common name
['Bichunmoo', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Bichunmoo property:cast_member ?b }
[]
common name
Q464601 Q490207 Q625572
SYSTEM
Kim Hee-sun, Shin Hyun-jun, Jeong Jin-yeong
Q464601 Q490207 Q625572
(Q491572,P161,c(Q502895))
action filter_type
action find
entity Q491572
relation P161
type Q502895
[ANSWERS] starred in Bichunmoo
['Q491572', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q491572 property:P161 ?b }
Kim Hee-sun Shin Hyun-jun Jeong Jin-yeong
Kim Hee-sun, Shin Hyun-jun and Jeong Jin-yeong starred in Bichunmoo
Kim Hee-sun Shin Hyun-jun Jeong Jin-yeong
action filter_type
action find
entity Bichunmoo
relation cast member
type common name
['Bichunmoo', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Bichunmoo property:cast_member ?b }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q274887
Q502895
USER
And what about Vantage Point?
(Q274887,P161,c(Q502895))
action filter_type
action find
entity Q274887
relation P161
type Q502895
['Q274887', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q274887 property:P161 ?c . ?c rdf:type ontology:Q502895 }
Vantage Point
action filter_type
action find
entity Vantage Point
relation cast member
type common name
['Vantage Point', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Vantage_Point property:cast_member ?c . ?c rdf:type ontology:common_name }
[]
common name
Q105825 Q102124 Q182763
SYSTEM
William Hurt, Sigourney Weaver, Forest Whitaker
Q363703 Q102124 Q275967 Q185554 Q182763 Q200768 Q374181 Q1368141 Q105825 Q190162 Q447960 Q1334830 Q373034 Q273788
(Q274887,P161,c(Q502895))
action filter_type
action find
entity Q274887
relation P161
type Q502895
[ANSWERS]
['Q274887', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q274887 property:P161 ?c . ?c rdf:type ontology:Q502895 }
Eduardo Noriega Sigourney Weaver Ayelet Zurer Matthew Fox Forest Whitaker Dennis Quaid Richard T. Jones Holt McCallany William Hurt Zoe Saldana Bruce McGill James LeGros Saïd Taghmaoui Édgar Ramírez
William Hurt Sigourney Weaver Forest Whitaker
action filter_type
action find
entity Vantage Point
relation cast member
type common name
['Vantage Point', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Vantage_Point property:cast_member ?c . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q102124
P27
Q15617994
USER
How many administrative territories are the countries of citizenship of Sigourney Weaver ?
(Q102124,P27,c(Q15617994))
action count
action filter_type
action find
entity Q102124
relation P27
type Q15617994
['Q102124', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:Q15617994 . resource:Q102124 property:P27 ?p }
Sigourney Weaver
action count
action filter_type
action find
entity Sigourney Weaver
relation country of citizenship
type designation for an administrative territorial entity
['Sigourney Weaver', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sigourney_Weaver property:country_of_citizenship ?p }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q102124,P27,c(Q15617994))
action count
action filter_type
action find
entity Q102124
relation P27
type Q15617994
[ANSWER]
['Q102124', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:Q15617994 . resource:Q102124 property:P27 ?p }
United States of America
1
action count
action filter_type
action find
entity Sigourney Weaver
relation country of citizenship
type designation for an administrative territorial entity
['Sigourney Weaver', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sigourney_Weaver property:country_of_citizenship ?p }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q18109072
Q15617994
USER
And also tell me about Saba Holland?
(Q18109072,P27,c(Q15617994))
action count
action filter_type
action find
entity Q18109072
relation P27
type Q15617994
['Q18109072', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { resource:Q18109072 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Saba Holland
action count
action filter_type
action find
entity Saba Holland
relation country of citizenship
type designation for an administrative territorial entity
['Saba Holland', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { resource:Saba_Holland property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q18109072,P27,c(Q15617994))
action count
action filter_type
action find
entity Q18109072
relation P27
type Q15617994
[ANSWER]
['Q18109072', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { resource:Q18109072 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Saba Holland
relation country of citizenship
type designation for an administrative territorial entity
['Saba Holland', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { resource:Saba_Holland property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q102124 Q175833
P22
Q502895
USER
How many people were the father of Sigourney Weaver or Wenceslaus I of Bohemia ?
(Q102124,P22,c(Q502895)) (Q175833,P22,c(Q502895))
action count
action union
action filter_type
action find
entity Q102124
relation P22
type Q502895
action filter_type
action find
entity Q175833
relation P22
type Q502895
['Q102124', 'P22', {'concept': 'Q502895'}] ['Q175833', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { resource:Q175833 property:P22 ?u . ?u rdf:type ontology:Q502895 } UNION { resource:Q102124 property:P22 ?u . ?u rdf:type ontology:Q502895 } }
Sigourney Weaver Wenceslaus I of Bohemia
action count
action union
action filter_type
action find
entity Sigourney Weaver
relation father
type common name
action filter_type
action find
entity Wenceslaus I of Bohemia
relation father
type common name
['Sigourney Weaver', 'father', {'concept': 'common name'}] ['Wenceslaus I of Bohemia', 'father', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { resource:Wenceslaus_I_of_Bohemia property:father ?u . ?u rdf:type ontology:common_name } UNION { resource:Sigourney_Weaver property:father ?u . ?u rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q3247520 Q312938
(Q102124,P22,c(Q502895)) (Q175833,P22,c(Q502895))
action count
action union
action filter_type
action find
entity Q102124
relation P22
type Q502895
action filter_type
action find
entity Q175833
relation P22
type Q502895
[ANSWER]
['Q102124', 'P22', {'concept': 'Q502895'}] ['Q175833', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { resource:Q175833 property:P22 ?u . ?u rdf:type ontology:Q502895 } UNION { resource:Q102124 property:P22 ?u . ?u rdf:type ontology:Q502895 } }
Sylvester Weaver Ottokar I of Bohemia
2
action count
action union
action filter_type
action find
entity Sigourney Weaver
relation father
type common name
action filter_type
action find
entity Wenceslaus I of Bohemia
relation father
type common name
['Sigourney Weaver', 'father', {'concept': 'common name'}] ['Wenceslaus I of Bohemia', 'father', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { resource:Wenceslaus_I_of_Bohemia property:father ?u . ?u rdf:type ontology:common_name } UNION { resource:Sigourney_Weaver property:father ?u . ?u rdf:type ontology:common_name } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q918321 Q105825
P1411
Q618779
USER
Which awards were William Hurt and Jason Gray-Stanford nominated for ?
AND((Q105825,P1411,c(Q618779)), (Q918321,P1411,c(Q618779)))
action filter_type
action intersection
action find
entity Q105825
relation P1411
action find
entity Q918321
relation P1411
type Q618779
{'AND': [['Q105825', 'P1411', {'concept': 'Q618779'}], ['Q918321', 'P1411', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?p WHERE { resource:Q105825 property:P1411 ?p . resource:Q918321 property:P1411 ?p . ?p rdf:type ontology:Q618779 }
Jason Gray-Stanford William Hurt
action filter_type
action intersection
action find
entity William Hurt
relation nominated for
action find
entity Jason Gray-Stanford
relation nominated for
type award
{'AND': [['William Hurt', 'nominated for', {'concept': 'award'}], ['Jason Gray-Stanford', 'nominated for', {'concept': 'award'}]]}
SELECT DISTINCT ?p WHERE { resource:William_Hurt property:nominated_for ?p . resource:Jason_Gray-Stanford property:nominated_for ?p . ?p rdf:type ontology:award }
[]
award
Q518675
SYSTEM
Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture
Q518675
AND((Q105825,P1411,c(Q618779)), (Q918321,P1411,c(Q618779)))
action filter_type
action intersection
action find
entity Q105825
relation P1411
action find
entity Q918321
relation P1411
type Q618779
William Hurt and Jason Gray-Stanford were nominated for [ANSWER]
{'AND': [['Q105825', 'P1411', {'concept': 'Q618779'}], ['Q918321', 'P1411', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?p WHERE { resource:Q105825 property:P1411 ?p . resource:Q918321 property:P1411 ?p . ?p rdf:type ontology:Q618779 }
Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture
William Hurt and Jason Gray-Stanford were nominated for Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture
Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture
action filter_type
action intersection
action find
entity William Hurt
relation nominated for
action find
entity Jason Gray-Stanford
relation nominated for
type award
{'AND': [['William Hurt', 'nominated for', {'concept': 'award'}], ['Jason Gray-Stanford', 'nominated for', {'concept': 'award'}]]}
SELECT DISTINCT ?p WHERE { resource:William_Hurt property:nominated_for ?p . resource:Jason_Gray-Stanford property:nominated_for ?p . ?p rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q518675 Q1189430 Q1339019
P1346
Q502895
USER
Was that award Dennis Pohl and Peter Riegert decalred as a champion ?
(Q518675,P1346,Q1189430) (Q518675,P1346,Q1339019)
action is_in
entity Q518675
action intersection
action find_reverse
entity Q1189430
relation P1346
action find_reverse
entity Q1339019
relation P1346
['Q518675', 'P1346', 'Q1189430'] ['Q518675', 'P1346', 'Q1339019']
ASK WHERE { resource:Q518675 property:P1346 resource:Q1189430 . resource:Q518675 property:P1346 resource:Q1339019 }
Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture Dennis Pohl Peter Riegert
action is_in
entity Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture
action intersection
action find_reverse
entity Dennis Pohl
relation winner
action find_reverse
entity Peter Riegert
relation winner
['Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture', 'winner', 'Dennis Pohl'] ['Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture', 'winner', 'Peter Riegert']
ASK WHERE { resource:Screen_Actors_Guild_Award_for_Outstanding_Performance_by_a_Cast_in_a_Motion_Picture property:winner resource:Dennis_Pohl . resource:Screen_Actors_Guild_Award_for_Outstanding_Performance_by_a_Cast_in_a_Motion_Picture property:winner resource:Peter_Riegert }
[]
common name
SYSTEM
NO and YES respectively
(Q518675,P1346,Q1189430) (Q518675,P1346,Q1339019)
action is_in
entity Q518675
action intersection
action find_reverse
entity Q1189430
relation P1346
action find_reverse
entity Q1339019
relation P1346
[ANSWER]
['Q518675', 'P1346', 'Q1189430'] ['Q518675', 'P1346', 'Q1339019']
ASK WHERE { resource:Q518675 property:P1346 resource:Q1189430 . resource:Q518675 property:P1346 resource:Q1339019 }
NO and YES respectively
action is_in
entity Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture
action intersection
action find_reverse
entity Dennis Pohl
relation winner
action find_reverse
entity Peter Riegert
relation winner
['Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture', 'winner', 'Dennis Pohl'] ['Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture', 'winner', 'Peter Riegert']
ASK WHERE { resource:Screen_Actors_Guild_Award_for_Outstanding_Performance_by_a_Cast_in_a_Motion_Picture property:winner resource:Dennis_Pohl . resource:Screen_Actors_Guild_Award_for_Outstanding_Performance_by_a_Cast_in_a_Motion_Picture property:winner resource:Peter_Riegert }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q102124 Q928164
P1411
Q4220917
USER
Does Sigourney Weaver have Polish Academy Award for Best Actress ?
(Q102124,P1411,Q928164)
action is_in
entity Q928164
action find
entity Q102124
relation P1411
['Q102124', 'P1411', 'Q928164']
ASK WHERE { resource:Q102124 property:P1411 resource:Q928164 }
Sigourney Weaver Polish Academy Award for Best Actress
action is_in
entity Polish Academy Award for Best Actress
action find
entity Sigourney Weaver
relation nominated for
['Sigourney Weaver', 'nominated for', 'Polish Academy Award for Best Actress']
ASK WHERE { resource:Sigourney_Weaver property:nominated_for resource:Polish_Academy_Award_for_Best_Actress }
[]
film award
SYSTEM
NO
(Q102124,P1411,Q928164)
action is_in
entity Q928164
action find
entity Q102124
relation P1411
[ANSWER]
['Q102124', 'P1411', 'Q928164']
ASK WHERE { resource:Q102124 property:P1411 resource:Q928164 }
No
action is_in
entity Polish Academy Award for Best Actress
action find
entity Sigourney Weaver
relation nominated for
['Sigourney Weaver', 'nominated for', 'Polish Academy Award for Best Actress']
ASK WHERE { resource:Sigourney_Weaver property:nominated_for resource:Polish_Academy_Award_for_Best_Actress }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q23017900 Q1189430
P27
Q1048835
USER
Which political territories are the countries of citizenship of Dennis Pohl and Johann Paul Carl von Moll ?
AND((Q1189430,P27,c(Q1048835)), (Q23017900,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1189430
relation P27
action find
entity Q23017900
relation P27
type Q1048835
{'AND': [['Q1189430', 'P27', {'concept': 'Q1048835'}], ['Q23017900', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { resource:Q1189430 property:P27 ?h . resource:Q23017900 property:P27 ?h . ?h rdf:type ontology:Q1048835 }
Johann Paul Carl von Moll Dennis Pohl
action filter_type
action intersection
action find
entity Dennis Pohl
relation country of citizenship
action find
entity Johann Paul Carl von Moll
relation country of citizenship
type political territorial entity
{'AND': [['Dennis Pohl', 'country of citizenship', {'concept': 'political territorial entity'}], ['Johann Paul Carl von Moll', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { resource:Dennis_Pohl property:country_of_citizenship ?h . resource:Johann_Paul_Carl_von_Moll property:country_of_citizenship ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q1189430,P27,c(Q1048835)), (Q23017900,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1189430
relation P27
action find
entity Q23017900
relation P27
type Q1048835
[ANSWER] is the countries of citizenship of Dennis Pohl and Johann Paul Carl von Moll
{'AND': [['Q1189430', 'P27', {'concept': 'Q1048835'}], ['Q23017900', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { resource:Q1189430 property:P27 ?h . resource:Q23017900 property:P27 ?h . ?h rdf:type ontology:Q1048835 }
Germany
Germany is the countries of citizenship of Dennis Pohl and Johann Paul Carl von Moll
Germany
action filter_type
action intersection
action find
entity Dennis Pohl
relation country of citizenship
action find
entity Johann Paul Carl von Moll
relation country of citizenship
type political territorial entity
{'AND': [['Dennis Pohl', 'country of citizenship', {'concept': 'political territorial entity'}], ['Johann Paul Carl von Moll', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { resource:Dennis_Pohl property:country_of_citizenship ?h . resource:Johann_Paul_Carl_von_Moll property:country_of_citizenship ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q102124
P175
Q14637321 Q15619164
USER
How many fictional spacecrafts or abstract beings presented Sigourney Weaver ?
(c(Q14637321),P175,Q102124) (c(Q15619164),P175,Q102124)
action count
action union
action filter_type
action find_reverse
entity Q102124
relation P175
type Q14637321
action filter_type
action find_reverse
entity Q102124
relation P175
type Q15619164
[{'concept': 'Q14637321'}, 'P175', 'Q102124'] [{'concept': 'Q15619164'}, 'P175', 'Q102124']
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { ?o property:P175 resource:Q102124 . ?o rdf:type ontology:Q14637321 } UNION { ?o property:P175 resource:Q102124 . ?o rdf:type ontology:Q15619164 } }
Sigourney Weaver
action count
action union
action filter_type
action find_reverse
entity Sigourney Weaver
relation performer
type fictional spacecraft
action filter_type
action find_reverse
entity Sigourney Weaver
relation performer
type abstract being
[{'concept': 'fictional spacecraft'}, 'performer', 'Sigourney Weaver'] [{'concept': 'abstract being'}, 'performer', 'Sigourney Weaver']
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { ?o property:performer resource:Sigourney_Weaver . ?o rdf:type ontology:fictional_spacecraft } UNION { ?o property:performer resource:Sigourney_Weaver . ?o rdf:type ontology:abstract_being } }
[]
fictional spacecraft abstract being
SYSTEM
2
Q1075007 Q988925
(c(Q14637321),P175,Q102124) (c(Q15619164),P175,Q102124)
action count
action union
action filter_type
action find_reverse
entity Q102124
relation P175
type Q14637321
action filter_type
action find_reverse
entity Q102124
relation P175
type Q15619164
[ANSWER]
[{'concept': 'Q14637321'}, 'P175', 'Q102124'] [{'concept': 'Q15619164'}, 'P175', 'Q102124']
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { ?o property:P175 resource:Q102124 . ?o rdf:type ontology:Q14637321 } UNION { ?o property:P175 resource:Q102124 . ?o rdf:type ontology:Q15619164 } }
Planet Express Ship Ellen Ripley
2
action count
action union
action filter_type
action find_reverse
entity Sigourney Weaver
relation performer
type fictional spacecraft
action filter_type
action find_reverse
entity Sigourney Weaver
relation performer
type abstract being
[{'concept': 'fictional spacecraft'}, 'performer', 'Sigourney Weaver'] [{'concept': 'abstract being'}, 'performer', 'Sigourney Weaver']
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { ?o property:performer resource:Sigourney_Weaver . ?o rdf:type ontology:fictional_spacecraft } UNION { ?o property:performer resource:Sigourney_Weaver . ?o rdf:type ontology:abstract_being } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q929
P530
Q15617994 Q1048835
USER
How many administrative territories have a diplomatic relationship with approximately the same number of political territories as Central African Republic ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q929
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?y ) WHERE { ?w property:P530 ?b . ?w rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?y = ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q929 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } }
Central African Republic
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Central African Republic
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 ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?y ) WHERE { ?w property:diplomatic_relation ?b . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?y = ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Central_African_Republic property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
72
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q929
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?y ) WHERE { ?w property:P530 ?b . ?w rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?y = ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q929 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
72
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Central African Republic
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 ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?y ) WHERE { ?w property:diplomatic_relation ?b . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?y = ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Central_African_Republic property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q917
P530
Q15617994 Q1048835
USER
And also tell me about Bhutan?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q917
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?x ) WHERE { ?n property:P530 ?c . ?n rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Q917 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?x = ?y ) }
Bhutan
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Bhutan
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 ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?x ) WHERE { ?n property:diplomatic_relation ?c . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Bhutan property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x = ?y ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
72
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q917
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?x ) WHERE { ?n property:P530 ?c . ?n rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Q917 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?x = ?y ) }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
72
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Bhutan
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 ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?x ) WHERE { ?n property:diplomatic_relation ?c . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Bhutan property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x = ?y ) }
[]