Simple Question (Direct)
Simple Question
Q17629
P17
Q15617994
USER
Which administrative territory does Ovada belong to ?
(Q17629,P17,c(Q15617994))
action filter_type
action find
entity Q17629
relation P17
type Q15617994
['Q17629', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q17629 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Ovada
action filter_type
action find
entity Ovada
relation country
type designation for an administrative territorial entity
['Ovada', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Ovada property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q17629,P17,c(Q15617994))
action filter_type
action find
entity Q17629
relation P17
type Q15617994
Ovada belongs to [ANSWER]
['Q17629', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q17629 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Italy
Ovada belongs to Italy
Italy
action filter_type
action find
entity Ovada
relation country
type designation for an administrative territorial entity
['Ovada', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Ovada property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P172
Q502895
USER
Who have that administrative territory as his/her race ?
(c(Q502895),P172,Q38)
action filter_type
action find_reverse
entity Q38
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q38']
SELECT DISTINCT ?k WHERE { ?k property:P172 resource:Q38 . ?k rdf:type ontology:Q502895 }
Italy
action filter_type
action find_reverse
entity Italy
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Italy']
SELECT DISTINCT ?k WHERE { ?k property:ethnic_group resource:Italy . ?k rdf:type ontology:common_name }
[]
common name
Q312614 Q5096249 Q1387658
SYSTEM
Alessandro Petacchi, Chicken John, Francesco D'Macho
Q312614 Q5096249 Q1387658
(c(Q502895),P172,Q38)
action filter_type
action find_reverse
entity Q38
relation P172
type Q502895
[ANSWERS] have that administrative territory as his/her race
[{'concept': 'Q502895'}, 'P172', 'Q38']
SELECT DISTINCT ?k WHERE { ?k property:P172 resource:Q38 . ?k rdf:type ontology:Q502895 }
Alessandro Petacchi Chicken John Francesco D'Macho
Alessandro Petacchi, Chicken John and Francesco D'Macho have that administrative territory as his/her race
Alessandro Petacchi Chicken John Francesco D'Macho
action filter_type
action find_reverse
entity Italy
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Italy']
SELECT DISTINCT ?k WHERE { ?k property:ethnic_group resource:Italy . ?k rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3350462 Q5096249
P27
Q15617994
USER
Which administrative territories do Chicken John or Olga Terekhina belong to ?
OR((Q5096249,P27,c(Q15617994)), (Q3350462,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5096249
relation P27
action find
entity Q3350462
relation P27
type Q15617994
{'OR': [['Q5096249', 'P27', {'concept': 'Q15617994'}], ['Q3350462', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q5096249 property:P27 ?t } UNION { resource:Q3350462 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
Olga Terekhina Chicken John
action filter_type
action union
action find
entity Chicken John
relation country of citizenship
action find
entity Olga Terekhina
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Chicken John', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Olga Terekhina', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Chicken_John property:country_of_citizenship ?t } UNION { resource:Olga_Terekhina property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q159
SYSTEM
United States of America, Russia
Q30 Q159
OR((Q5096249,P27,c(Q15617994)), (Q3350462,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5096249
relation P27
action find
entity Q3350462
relation P27
type Q15617994
Chicken John or Olga Terekhina belong to the [ANSWERS]
{'OR': [['Q5096249', 'P27', {'concept': 'Q15617994'}], ['Q3350462', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q5096249 property:P27 ?t } UNION { resource:Q3350462 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
United States of America Russia
Chicken John or Olga Terekhina belong to the United States of America and Russia
United States of America Russia
action filter_type
action union
action find
entity Chicken John
relation country of citizenship
action find
entity Olga Terekhina
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Chicken John', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Olga Terekhina', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Chicken_John property:country_of_citizenship ?t } UNION { resource:Olga_Terekhina property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q766
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with less number of administrative territories than Jamaica ?
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?j ) WHERE { ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 . ?r property:P530 ?s } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q766 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?j < ?w ) }
Jamaica
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?j ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?s } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Jamaica property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?j < ?w ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWERS] have tactful political relations with less number of administrative territories than Jamaica
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?j ) WHERE { ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 . ?r property:P530 ?s } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q766 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?j < ?w ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have tactful political relations with less number of administrative territories than Jamaica
Gabon Grenada Papua New Guinea
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?j ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?s } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Jamaica property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?j < ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q664
P530
Q15617994 Q1048835
USER
And also tell me about New Zealand?
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?y ) WHERE { ?i property:P530 ?q . ?i rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q664 property:P530 ?s . ?s rdf:type ontology:Q1048835 } } . FILTER ( ?y < ?r ) }
New Zealand
action less
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': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?y ) WHERE { ?i property:diplomatic_relation ?q . ?i rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:New_Zealand property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity } } . FILTER ( ?y < ?r ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?y ) WHERE { ?i property:P530 ?q . ?i rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q664 property:P530 ?s . ?s rdf:type ontology:Q1048835 } } . FILTER ( ?y < ?r ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon Grenada Papua New Guinea
action less
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': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?y ) WHERE { ?i property:diplomatic_relation ?q . ?i rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:New_Zealand property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity } } . FILTER ( ?y < ?r ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P27
Q1048835 Q502895
USER
How many political territories are the native countriesof approximately the same number of people as that political territory ?
(c(Q502895),P27,c(Q1048835))
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity common name
Comparative|Count over More/Less|Single entity type|Clarification
Q1000
SYSTEM
Did you mean Gabon ?
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Did you mean Gabon ?
Gabon
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Papua New Guinea. Could you tell me the answer for that?
(c(Q502895),P27,c(Q1048835))
Q691
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
[]
SYSTEM
63
Q635755 Q668384 Q1000 Q193714 Q1747689 Q746558 Q838261 Q785 Q193619 Q691 Q769 Q685 Q699964 Q763 Q1232887 Q664 Q766 Q22880 Q170361 Q1054923 Q10557 Q5720 Q505610 Q693551 Q13353 Q494354 Q650489 Q781 Q5705 Q757 Q168159 Q5785 Q35 Q109128 Q3306663 Q190959 Q11266977 Q223793 Q3995 Q130842 Q18221 Q650682 Q778 Q9676 Q217829 Q100166 Q9648 Q234 Q4040 Q2991382 Q309460 Q129286 Q168651 Q3908 Q9337 Q23635 Q192184 Q25228 Q31747 Q25305 Q79965 Q157070 Q170604
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Odieta Medellín Gabon Mandatory Palestine Ancient Rome Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Papua New Guinea Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis County of Savoy New Zealand Jamaica Electoral Palatinate Saar British Hong Kong Swabia Valencian Country Flintshire Landgraviate of Hesse-Darmstadt Montserrat Kara-Khanid Khanate Margraviate of Baden Antigua and Barbuda Catalonia Saint Vincent and the Grenadines Anglesey Cayman Islands Denmark Gwynedd Merthyr Tydfil County Borough Transvaal Epirus Kingdom of Etruria Basque Country Greater Lebanon Turks and Caicos Islands Denbighshire The Bahamas Isle of Man Ceredigion Orkney Islands Falkland Islands Flemish Region Aragon County of Provence County of Hainaut British Raj Landgraviate of Hesse-Kassel Galicia Flemish Region Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands Golden Horde County of Flanders New France
63
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3553595 Q312614
P27
Q15617994
USER
Which administrative territories are Alessandro Petacchi or Valentin Oehen a civilian of ?
OR((Q312614,P27,c(Q15617994)), (Q3553595,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q312614
relation P27
action find
entity Q3553595
relation P27
type Q15617994
{'OR': [['Q312614', 'P27', {'concept': 'Q15617994'}], ['Q3553595', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q312614 property:P27 ?s } UNION { resource:Q3553595 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
Valentin Oehen Alessandro Petacchi
action filter_type
action union
action find
entity Alessandro Petacchi
relation country of citizenship
action find
entity Valentin Oehen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alessandro Petacchi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Valentin Oehen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Alessandro_Petacchi property:country_of_citizenship ?s } UNION { resource:Valentin_Oehen property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39 Q38
SYSTEM
Switzerland, Italy
Q39 Q38
OR((Q312614,P27,c(Q15617994)), (Q3553595,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q312614
relation P27
action find
entity Q3553595
relation P27
type Q15617994
[ANSWERS] are Alessandro Petacchi or Valentin Oehen a civilian of
{'OR': [['Q312614', 'P27', {'concept': 'Q15617994'}], ['Q3553595', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q312614 property:P27 ?s } UNION { resource:Q3553595 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
Switzerland Italy
Switzerland and Italy are Alessandro Petacchi or Valentin Oehen a civilian of
Switzerland Italy
action filter_type
action union
action find
entity Alessandro Petacchi
relation country of citizenship
action find
entity Valentin Oehen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alessandro Petacchi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Valentin Oehen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Alessandro_Petacchi property:country_of_citizenship ?s } UNION { resource:Valentin_Oehen property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16016521
P27
Q502895
USER
Are Ahmed Mamsa a citizen of those administrative territories ?
(Q16016521,P27,Q39) (Q16016521,P27,Q38)
action is_in
entity prev_answer
action find
entity Q16016521
relation P27
['Q16016521', 'P27', 'Q39'] ['Q16016521', 'P27', 'Q38']
ASK WHERE { VALUES ( ?c ) { ( resource:Q39 ) ( resource:Q38 ) } . resource:Q16016521 property:P27 ?c }
Ahmed Mamsa
action is_in
entity prev_answer
action find
entity Ahmed Mamsa
relation country of citizenship
['Ahmed Mamsa', 'country of citizenship', 'Switzerland'] ['Ahmed Mamsa', 'country of citizenship', 'Italy']
ASK WHERE { VALUES ( ?c ) { ( resource:Switzerland ) ( resource:Italy ) } . resource:Ahmed_Mamsa property:country_of_citizenship ?c }
[]
common name
SYSTEM
NO
(Q16016521,P27,Q39) (Q16016521,P27,Q38)
action is_in
entity prev_answer
action find
entity Q16016521
relation P27
[ANSWER]
['Q16016521', 'P27', 'Q39'] ['Q16016521', 'P27', 'Q38']
ASK WHERE { VALUES ( ?c ) { ( resource:Q39 ) ( resource:Q38 ) } . resource:Q16016521 property:P27 ?c }
No
action is_in
entity prev_answer
action find
entity Ahmed Mamsa
relation country of citizenship
['Ahmed Mamsa', 'country of citizenship', 'Switzerland'] ['Ahmed Mamsa', 'country of citizenship', 'Italy']
ASK WHERE { VALUES ( ?c ) { ( resource:Switzerland ) ( resource:Italy ) } . resource:Ahmed_Mamsa property:country_of_citizenship ?c }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with approximately 66 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 66
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?m ) WHERE { ?r property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?m = 66 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 66
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?m ) WHERE { ?r property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?m = 66 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q408 Q16
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 66
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?m ) WHERE { ?r property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?m = 66 ) }
Australia Canada
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 66
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?m ) WHERE { ?r property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?m = 66 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q334
P530
Q1048835
USER
How many political territories have tactful political relations with Italy and Singapore ?
(c(Q1048835),P530,Q38) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q38
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q38'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:P530 resource:Q334 . ?a rdf:type ontology:Q1048835 . ?a property:P530 resource:Q38 . ?a rdf:type ontology:Q1048835 }
Italy Singapore
action count
action intersection
action filter_type
action find_reverse
entity Italy
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Italy'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:diplomatic_relation resource:Singapore . ?a rdf:type ontology:political_territorial_entity . ?a property:diplomatic_relation resource:Italy . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q16 Q408 Q183
(c(Q1048835),P530,Q38) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q38
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q38'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:P530 resource:Q334 . ?a rdf:type ontology:Q1048835 . ?a property:P530 resource:Q38 . ?a rdf:type ontology:Q1048835 }
Canada Australia Germany
3
action count
action intersection
action filter_type
action find_reverse
entity Italy
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Italy'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:diplomatic_relation resource:Singapore . ?a rdf:type ontology:political_territorial_entity . ?a property:diplomatic_relation resource:Italy . ?a rdf:type ontology:political_territorial_entity }
[]