Simple Question (Direct)
Simple Question
Q982613
P57
Q502895
USER
Who was Zappatore directed by ?
(Q982613,P57,c(Q502895))
action filter_type
action find
entity Q982613
relation P57
type Q502895
['Q982613', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q982613 property:P57 ?l . ?l rdf:type ontology:Q502895 }
Zappatore
action filter_type
action find
entity Zappatore
relation director
type common name
['Zappatore', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Zappatore property:director ?l . ?l rdf:type ontology:common_name }
[]
common name
Q723803
SYSTEM
Alfonso Brescia
Q723803
(Q982613,P57,c(Q502895))
action filter_type
action find
entity Q982613
relation P57
type Q502895
Zappatore was directed by [ANSWER] by
['Q982613', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q982613 property:P57 ?l . ?l rdf:type ontology:Q502895 }
Alfonso Brescia
Zappatore was directed by Alfonso Brescia by
Alfonso Brescia
action filter_type
action find
entity Zappatore
relation director
type common name
['Zappatore', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Zappatore property:director ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q982613
P2554
Q502895
USER
Who is the production designer of Zappatore ?
(Q982613,P2554,c(Q502895))
action filter_type
action find
entity Q982613
relation P2554
type Q502895
['Q982613', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q982613 property:P2554 ?z . ?z rdf:type ontology:Q502895 }
Zappatore
action filter_type
action find
entity Zappatore
relation production designer
type common name
['Zappatore', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Zappatore property:production_designer ?z . ?z rdf:type ontology:common_name }
[]
common name
Q3751188
SYSTEM
Franco Calabrese
Q3751188
(Q982613,P2554,c(Q502895))
action filter_type
action find
entity Q982613
relation P2554
type Q502895
The production designer of Zappatore is Gian [ANSWER]
['Q982613', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q982613 property:P2554 ?z . ?z rdf:type ontology:Q502895 }
Franco Calabrese
The production designer of Zappatore is Gian Franco Calabrese
Franco Calabrese
action filter_type
action find
entity Zappatore
relation production designer
type common name
['Zappatore', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Zappatore property:production_designer ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q919673
Q502895
USER
And what about The River?
(Q919673,P2554,c(Q502895))
action filter_type
action find
entity Q919673
relation P2554
type Q502895
['Q919673', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q919673 property:P2554 ?c . ?c rdf:type ontology:Q502895 }
The River
action filter_type
action find
entity The River
relation production designer
type common name
['The River', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:The_River property:production_designer ?c . ?c rdf:type ontology:common_name }
[]
common name
Q530333
SYSTEM
Eugène Lourié
Q530333
(Q919673,P2554,c(Q502895))
action filter_type
action find
entity Q919673
relation P2554
type Q502895
[ANSWER]
['Q919673', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q919673 property:P2554 ?c . ?c rdf:type ontology:Q502895 }
Eugène Lourié
Eugène Lourié
action filter_type
action find
entity The River
relation production designer
type common name
['The River', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:The_River property:production_designer ?c . ?c rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3575124 Q919673
P495
Q15617994
USER
Which administrative territories are the countries of origin of The River or Zelal ?
OR((Q919673,P495,c(Q15617994)), (Q3575124,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q919673
relation P495
action find
entity Q3575124
relation P495
type Q15617994
{'OR': [['Q919673', 'P495', {'concept': 'Q15617994'}], ['Q3575124', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { ?h property:P495 ?x . VALUES ( ?h ) { ( resource:Q919673 ) ( resource:Q3575124 ) } } . ?x rdf:type ontology:Q15617994 }
Zelal The River
action filter_type
action union
action find
entity The River
relation country of origin
action find
entity Zelal
relation country of origin
type designation for an administrative territorial entity
{'OR': [['The River', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Zelal', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { ?h property:country_of_origin ?x . VALUES ( ?h ) { ( resource:The_River ) ( resource:Zelal ) } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q30 Q79
SYSTEM
France, United States of America, Egypt
Q142 Q30 Q79
OR((Q919673,P495,c(Q15617994)), (Q3575124,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q919673
relation P495
action find
entity Q3575124
relation P495
type Q15617994
[ANSWERS] are the countries of origin of The River or Zelal
{'OR': [['Q919673', 'P495', {'concept': 'Q15617994'}], ['Q3575124', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { ?h property:P495 ?x . VALUES ( ?h ) { ( resource:Q919673 ) ( resource:Q3575124 ) } } . ?x rdf:type ontology:Q15617994 }
France United States of America Egypt
France, United States of America and Egypt are the countries of origin of The River or Zelal
France United States of America Egypt
action filter_type
action union
action find
entity The River
relation country of origin
action find
entity Zelal
relation country of origin
type designation for an administrative territorial entity
{'OR': [['The River', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Zelal', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { ?h property:country_of_origin ?x . VALUES ( ?h ) { ( resource:The_River ) ( resource:Zelal ) } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q603857
P495
Q838948
USER
Did 11'09"01 September 11 originate in those administrative territories ?
(Q603857,P495,Q142) (Q603857,P495,Q30) (Q603857,P495,Q79)
action is_in
entity prev_answer
action find
entity Q603857
relation P495
['Q603857', 'P495', 'Q142'] ['Q603857', 'P495', 'Q30'] ['Q603857', 'P495', 'Q79']
ASK WHERE { VALUES ( ?b ) { ( resource:Q142 ) ( resource:Q30 ) ( resource:Q79 ) } . resource:Q603857 property:P495 ?b }
11'09"01 September 11
action is_in
entity prev_answer
action find
entity 11'09"01 September 11
relation country of origin
['11\'09"01 September 11', 'country of origin', 'France'] ['11\'09"01 September 11', 'country of origin', 'United States of America'] ['11\'09"01 September 11', 'country of origin', 'Egypt']
ASK WHERE { VALUES ( ?b ) { ( resource:France ) ( resource:United_States_of_America ) ( resource:Egypt ) } . resource:11'09"01_September_11 property:country_of_origin ?b }
[]
work of art
SYSTEM
YES
(Q603857,P495,Q142) (Q603857,P495,Q30) (Q603857,P495,Q79)
action is_in
entity prev_answer
action find
entity Q603857
relation P495
[ANSWER]
['Q603857', 'P495', 'Q142'] ['Q603857', 'P495', 'Q30'] ['Q603857', 'P495', 'Q79']
ASK WHERE { VALUES ( ?b ) { ( resource:Q142 ) ( resource:Q30 ) ( resource:Q79 ) } . resource:Q603857 property:P495 ?b }
Yes
action is_in
entity prev_answer
action find
entity 11'09"01 September 11
relation country of origin
['11\'09"01 September 11', 'country of origin', 'France'] ['11\'09"01 September 11', 'country of origin', 'United States of America'] ['11\'09"01 September 11', 'country of origin', 'Egypt']
ASK WHERE { VALUES ( ?b ) { ( resource:France ) ( resource:United_States_of_America ) ( resource:Egypt ) } . resource:11'09"01_September_11 property:country_of_origin ?b }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q211
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with less number of administrative territories than Latvia ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q211
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?l ) WHERE { ?r rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 . ?z property:P530 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:P530 resource:Q211 . ?f rdf:type ontology:Q15617994 } } . FILTER ( ?l < ?w ) }
Latvia
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Latvia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?l ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:diplomatic_relation ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:diplomatic_relation resource:Latvia . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l < ?w ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q184
SYSTEM
Georgia, Netherlands, Belarus
Q702 Q804 Q800 Q419 Q55 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1027 Q1020 Q189 Q842 Q184 Q1029 Q1028 Q736 Q786 Q225 Q221 Q96 Q229 Q902 Q1036 Q1037 Q1032 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q750 Q217 Q214 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q211
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with less number of administrative territories than Latvia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?l ) WHERE { ?r rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 . ?z property:P530 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:P530 resource:Q211 . ?f rdf:type ontology:Q15617994 } } . FILTER ( ?l < ?w ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Mauritius Malawi Iceland Oman Belarus Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Niger Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Bolivia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia Thailand
Georgia, Netherlands and Belarus have diplomatic relationships with less number of administrative territories than Latvia
Georgia Netherlands Belarus
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Latvia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?l ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:diplomatic_relation ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:diplomatic_relation resource:Latvia . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l < ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q214
P530
Q15617994 Q15617994
USER
And also tell me about Slovakia?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q214
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:P530 resource:Q214 . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?v < ?e ) }
Slovakia
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Slovakia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:diplomatic_relation resource:Slovakia . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v < ?e ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q218 Q20 Q948
SYSTEM
Romania, Norway, Tunisia
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q214
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:P530 resource:Q214 . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?v < ?e ) }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
Romania Norway Tunisia
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Slovakia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:diplomatic_relation resource:Slovakia . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v < ?e ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have diplomatic relations with those administrative territories ?
(Q183,P530,Q218) (Q183,P530,Q20) (Q183,P530,Q948)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q218'] ['Q183', 'P530', 'Q20'] ['Q183', 'P530', 'Q948']
ASK WHERE { resource:Q183 property:P530 ?x . VALUES ( ?x ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q783 ) } }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Romania'] ['Germany', 'diplomatic relation', 'Norway'] ['Germany', 'diplomatic relation', 'Tunisia']
ASK WHERE { resource:Germany property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Honduras ) } }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q218) (Q183,P530,Q20) (Q183,P530,Q948)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q218'] ['Q183', 'P530', 'Q20'] ['Q183', 'P530', 'Q948']
ASK WHERE { resource:Q183 property:P530 ?x . VALUES ( ?x ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q783 ) } }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Romania'] ['Germany', 'diplomatic relation', 'Norway'] ['Germany', 'diplomatic relation', 'Tunisia']
ASK WHERE { resource:Germany property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Honduras ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q664
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with approximately the same number of administrative territories as New Zealand ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?m ) WHERE { ?i rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?i property:P530 ?k } GROUP BY ?i } . FILTER ( ?m = ?n ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Q664 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } }
New Zealand
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?m ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?k } GROUP BY ?i } . FILTER ( ?m = ?n ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:New_Zealand property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWERS] have a diplomatic relationship with approximately the same number of administrative territories as New Zealand
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?m ) WHERE { ?i rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?i property:P530 ?k } GROUP BY ?i } . FILTER ( ?m = ?n ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Q664 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have a diplomatic relationship with approximately the same number of administrative territories as New Zealand
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?m ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?k } GROUP BY ?i } . FILTER ( ?m = ?n ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:New_Zealand property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q35
P530
Q1048835 Q15617994
USER
And how about Denmark?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?z ) WHERE { ?h rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 . ?h property:P530 ?s } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?l } } . FILTER ( ?z = ?a ) }
Denmark
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?z ) WHERE { ?h rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?s } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?l } } . FILTER ( ?z = ?a ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?z ) WHERE { ?h rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 . ?h property:P530 ?s } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?l } } . FILTER ( ?z = ?a ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?z ) WHERE { ?h rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?s } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?l } } . FILTER ( ?z = ?a ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5330466
P530
Q15617994
USER
Do Eastern Sierra Unified School District have ambassadorial relations with those political territories ?
(Q5330466,P530,Q35) (Q5330466,P530,Q16) (Q5330466,P530,Q40)
action is_in
entity prev_answer
action find
entity Q5330466
relation P530
['Q5330466', 'P530', 'Q35'] ['Q5330466', 'P530', 'Q16'] ['Q5330466', 'P530', 'Q40']
ASK WHERE { resource:Q5330466 property:P530 ?j . VALUES ( ?j ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Eastern Sierra Unified School District
action is_in
entity prev_answer
action find
entity Eastern Sierra Unified School District
relation diplomatic relation
['Eastern Sierra Unified School District', 'diplomatic relation', 'Denmark'] ['Eastern Sierra Unified School District', 'diplomatic relation', 'Canada'] ['Eastern Sierra Unified School District', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Eastern_Sierra_Unified_School_District property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5330466,P530,Q35) (Q5330466,P530,Q16) (Q5330466,P530,Q40)
action is_in
entity prev_answer
action find
entity Q5330466
relation P530
[ANSWER]
['Q5330466', 'P530', 'Q35'] ['Q5330466', 'P530', 'Q16'] ['Q5330466', 'P530', 'Q40']
ASK WHERE { resource:Q5330466 property:P530 ?j . VALUES ( ?j ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Eastern Sierra Unified School District
relation diplomatic relation
['Eastern Sierra Unified School District', 'diplomatic relation', 'Denmark'] ['Eastern Sierra Unified School District', 'diplomatic relation', 'Canada'] ['Eastern Sierra Unified School District', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Eastern_Sierra_Unified_School_District property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q142 Q711 Q584770
P530
Q15617994
USER
Is France known to have diplomatic connections with Mongolia and Rietzneuendorf-Staakow ?
(Q142,P530,Q711) (Q142,P530,Q584770)
action is_in
entity Q142
action intersection
action find_reverse
entity Q711
relation P530
action find_reverse
entity Q584770
relation P530
['Q142', 'P530', 'Q711'] ['Q142', 'P530', 'Q584770']
ASK WHERE { resource:Q142 property:P530 resource:Q584770 . resource:Q142 property:P530 resource:Q711 }
France Mongolia Rietzneuendorf-Staakow
action is_in
entity France
action intersection
action find_reverse
entity Mongolia
relation diplomatic relation
action find_reverse
entity Rietzneuendorf-Staakow
relation diplomatic relation
['France', 'diplomatic relation', 'Mongolia'] ['France', 'diplomatic relation', 'Rietzneuendorf-Staakow']
ASK WHERE { resource:France property:diplomatic_relation resource:Rietzneuendorf-Staakow . resource:France property:diplomatic_relation resource:Mongolia }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q142,P530,Q711) (Q142,P530,Q584770)
action is_in
entity Q142
action intersection
action find_reverse
entity Q711
relation P530
action find_reverse
entity Q584770
relation P530
[ANSWER]
['Q142', 'P530', 'Q711'] ['Q142', 'P530', 'Q584770']
ASK WHERE { resource:Q142 property:P530 resource:Q584770 . resource:Q142 property:P530 resource:Q711 }
YES and NO respectively
action is_in
entity France
action intersection
action find_reverse
entity Mongolia
relation diplomatic relation
action find_reverse
entity Rietzneuendorf-Staakow
relation diplomatic relation
['France', 'diplomatic relation', 'Mongolia'] ['France', 'diplomatic relation', 'Rietzneuendorf-Staakow']
ASK WHERE { resource:France property:diplomatic_relation resource:Rietzneuendorf-Staakow . resource:France property:diplomatic_relation resource:Mongolia }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q218 Q316823 Q255022
P6
Q502895
USER
Does Romania have its government headed by Petre Roman and Mugur Isărescu ?
(Q218,P6,Q316823) (Q218,P6,Q255022)
action is_in
entity Q218
action intersection
action find_reverse
entity Q316823
relation P6
action find_reverse
entity Q255022
relation P6
['Q218', 'P6', 'Q316823'] ['Q218', 'P6', 'Q255022']
ASK WHERE { resource:Q218 property:P6 resource:Q255022 . resource:Q218 property:P6 resource:Q316823 }
Romania Petre Roman Mugur Isărescu
action is_in
entity Romania
action intersection
action find_reverse
entity Petre Roman
relation head of government
action find_reverse
entity Mugur Isărescu
relation head of government
['Romania', 'head of government', 'Petre Roman'] ['Romania', 'head of government', 'Mugur Isărescu']
ASK WHERE { resource:Romania property:head_of_government resource:Mugur_Isărescu . resource:Romania property:head_of_government resource:Petre_Roman }
[]
common name
SYSTEM
YES
(Q218,P6,Q316823) (Q218,P6,Q255022)
action is_in
entity Q218
action intersection
action find_reverse
entity Q316823
relation P6
action find_reverse
entity Q255022
relation P6
[ANSWER]
['Q218', 'P6', 'Q316823'] ['Q218', 'P6', 'Q255022']
ASK WHERE { resource:Q218 property:P6 resource:Q255022 . resource:Q218 property:P6 resource:Q316823 }
Yes
action is_in
entity Romania
action intersection
action find_reverse
entity Petre Roman
relation head of government
action find_reverse
entity Mugur Isărescu
relation head of government
['Romania', 'head of government', 'Petre Roman'] ['Romania', 'head of government', 'Mugur Isărescu']
ASK WHERE { resource:Romania property:head_of_government resource:Mugur_Isărescu . resource:Romania property:head_of_government resource:Petre_Roman }
[]