Simple Question (Direct)
Simple Question
Q4013453
P20
Q15617994
USER
Where did Vincenzo Pappalettera die ?
(Q4013453,P20,c(Q15617994))
action filter_type
action find
entity Q4013453
relation P20
type Q15617994
['Q4013453', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q4013453 property:P20 ?n }
Vincenzo Pappalettera
action filter_type
action find
entity Vincenzo Pappalettera
relation place of death
type designation for an administrative territorial entity
['Vincenzo Pappalettera', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Vincenzo_Pappalettera property:place_of_death ?n }
[]
designation for an administrative territorial entity
Q39973
SYSTEM
Cesano Maderno
Q39973
(Q4013453,P20,c(Q15617994))
action filter_type
action find
entity Q4013453
relation P20
type Q15617994
Vincenzo Pappalettera died in [ANSWER]
['Q4013453', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q4013453 property:P20 ?n }
Cesano Maderno
Vincenzo Pappalettera died in Cesano Maderno
Cesano Maderno
action filter_type
action find
entity Vincenzo Pappalettera
relation place of death
type designation for an administrative territorial entity
['Vincenzo Pappalettera', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Vincenzo_Pappalettera property:place_of_death ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q39973
P190
Q20667921
USER
Which french administrative division is twin city of that administrative territory ?
(Q39973,P190,c(Q20667921))
action filter_type
action find
entity Q39973
relation P190
type Q20667921
['Q39973', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q39973 property:P190 ?f . ?f rdf:type ontology:Q20667921 }
Cesano Maderno
action filter_type
action find
entity Cesano Maderno
relation sister city
type type of french administrative division
['Cesano Maderno', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Cesano_Maderno property:sister_city ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q474503
SYSTEM
Valençay
Q474503
(Q39973,P190,c(Q20667921))
action filter_type
action find
entity Q39973
relation P190
type Q20667921
[ANSWER] is twin city of that administrative territory
['Q39973', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q39973 property:P190 ?f . ?f rdf:type ontology:Q20667921 }
Valençay
Valençay is twin city of that administrative territory
Valençay
action filter_type
action find
entity Cesano Maderno
relation sister city
type type of french administrative division
['Cesano Maderno', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Cesano_Maderno property:sister_city ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1657213
Q20667921
USER
And how about Venta de Baños?
(Q1657213,P190,c(Q20667921))
action filter_type
action find
entity Q1657213
relation P190
type Q20667921
['Q1657213', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q1657213 property:P190 ?d . ?d rdf:type ontology:Q20667921 }
Venta de Baños
action filter_type
action find
entity Venta de Baños
relation sister city
type type of french administrative division
['Venta de Baños', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Venta_de_Baños property:sister_city ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q746946
SYSTEM
Coulounieix-Chamiers
Q746946
(Q1657213,P190,c(Q20667921))
action filter_type
action find
entity Q1657213
relation P190
type Q20667921
[ANSWER]
['Q1657213', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q1657213 property:P190 ?d . ?d rdf:type ontology:Q20667921 }
Coulounieix-Chamiers
Coulounieix-Chamiers
action filter_type
action find
entity Venta de Baños
relation sister city
type type of french administrative division
['Venta de Baños', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Venta_de_Baños property:sister_city ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q746946 Q520088
P17
Q15617994
USER
Is Coulounieix-Chamiers located in Stadtroda ?
(Q746946,P17,Q520088)
action is_in
entity Q520088
action find
entity Q746946
relation P17
['Q746946', 'P17', 'Q520088']
ASK WHERE { resource:Q746946 property:P17 resource:Q520088 }
Coulounieix-Chamiers Stadtroda
action is_in
entity Stadtroda
action find
entity Coulounieix-Chamiers
relation country
['Coulounieix-Chamiers', 'country', 'Stadtroda']
ASK WHERE { resource:Coulounieix-Chamiers property:country resource:Stadtroda }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q746946,P17,Q520088)
action is_in
entity Q520088
action find
entity Q746946
relation P17
[ANSWER]
['Q746946', 'P17', 'Q520088']
ASK WHERE { resource:Q746946 property:P17 resource:Q520088 }
No
action is_in
entity Stadtroda
action find
entity Coulounieix-Chamiers
relation country
['Coulounieix-Chamiers', 'country', 'Stadtroda']
ASK WHERE { resource:Coulounieix-Chamiers property:country resource:Stadtroda }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q4013453 Q38 Q5284695
P27
Q15617994
USER
Is Vincenzo Pappalettera a citizen of Italy and Divya ?
(Q4013453,P27,Q38) (Q4013453,P27,Q5284695)
action is_in
entity Q4013453
action intersection
action find_reverse
entity Q38
relation P27
action find_reverse
entity Q5284695
relation P27
['Q4013453', 'P27', 'Q38'] ['Q4013453', 'P27', 'Q5284695']
ASK WHERE { resource:Q4013453 property:P27 resource:Q5284695 . resource:Q4013453 property:P27 resource:Q38 }
Vincenzo Pappalettera Italy Divya
action is_in
entity Vincenzo Pappalettera
action intersection
action find_reverse
entity Italy
relation country of citizenship
action find_reverse
entity Divya
relation country of citizenship
['Vincenzo Pappalettera', 'country of citizenship', 'Italy'] ['Vincenzo Pappalettera', 'country of citizenship', 'Divya']
ASK WHERE { resource:Vincenzo_Pappalettera property:country_of_citizenship resource:Divya . resource:Vincenzo_Pappalettera property:country_of_citizenship resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q4013453,P27,Q38) (Q4013453,P27,Q5284695)
action is_in
entity Q4013453
action intersection
action find_reverse
entity Q38
relation P27
action find_reverse
entity Q5284695
relation P27
[ANSWER]
['Q4013453', 'P27', 'Q38'] ['Q4013453', 'P27', 'Q5284695']
ASK WHERE { resource:Q4013453 property:P27 resource:Q5284695 . resource:Q4013453 property:P27 resource:Q38 }
YES and NO respectively
action is_in
entity Vincenzo Pappalettera
action intersection
action find_reverse
entity Italy
relation country of citizenship
action find_reverse
entity Divya
relation country of citizenship
['Vincenzo Pappalettera', 'country of citizenship', 'Italy'] ['Vincenzo Pappalettera', 'country of citizenship', 'Divya']
ASK WHERE { resource:Vincenzo_Pappalettera property:country_of_citizenship resource:Divya . resource:Vincenzo_Pappalettera property:country_of_citizenship resource:Italy }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q746946 Q117226
P17
Q15617994
USER
Is Coulounieix-Chamiers situated in San Donato Val di Comino ?
(Q746946,P17,Q117226)
action is_in
entity Q117226
action find
entity Q746946
relation P17
['Q746946', 'P17', 'Q117226']
ASK WHERE { resource:Q746946 property:P17 resource:Q117226 }
Coulounieix-Chamiers San Donato Val di Comino
action is_in
entity San Donato Val di Comino
action find
entity Coulounieix-Chamiers
relation country
['Coulounieix-Chamiers', 'country', 'San Donato Val di Comino']
ASK WHERE { resource:Coulounieix-Chamiers property:country resource:San_Donato_Val_di_Comino }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q746946,P17,Q117226)
action is_in
entity Q117226
action find
entity Q746946
relation P17
[ANSWER]
['Q746946', 'P17', 'Q117226']
ASK WHERE { resource:Q746946 property:P17 resource:Q117226 }
No
action is_in
entity San Donato Val di Comino
action find
entity Coulounieix-Chamiers
relation country
['Coulounieix-Chamiers', 'country', 'San Donato Val di Comino']
ASK WHERE { resource:Coulounieix-Chamiers property:country resource:San_Donato_Val_di_Comino }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q242
P463
Q874405 Q484652
USER
How many social groups and international organizations were Belize a member of ?
(Q242,P463,c(Q874405)) (Q242,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q242
relation P463
type Q874405
action filter_type
action find
entity Q242
relation P463
type Q484652
['Q242', 'P463', {'concept': 'Q874405'}] ['Q242', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i rdf:type ?q . VALUES ( ?q ) { ( ontology:Q874405 ) ( ontology:Q484652 ) } }
Belize
action count
action union
action filter_type
action find
entity Belize
relation member of
type social group
action filter_type
action find
entity Belize
relation member of
type international organization
['Belize', 'member of', {'concept': 'social group'}] ['Belize', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i rdf:type ?q . VALUES ( ?q ) { ( ontology:social_group ) ( ontology:international_organization ) } }
[]
social group international organization
SYSTEM
1 social groups and 6 international organizations
Q496967 Q7785 Q1065 Q294278 Q205995 Q1147937 Q1043527
(Q242,P463,c(Q874405)) (Q242,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q242
relation P463
type Q874405
action filter_type
action find
entity Q242
relation P463
type Q484652
[ANSWER]
['Q242', 'P463', {'concept': 'Q874405'}] ['Q242', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i rdf:type ?q . VALUES ( ?q ) { ( ontology:Q874405 ) ( ontology:Q484652 ) } }
Alliance of Small Island States Commonwealth of Nations United Nations African, Caribbean and Pacific Group of States Caribbean Community Association of Caribbean States Multilateral Investment Guarantee Agency
1 social groups and 6 international organizations
action count
action union
action filter_type
action find
entity Belize
relation member of
type social group
action filter_type
action find
entity Belize
relation member of
type international organization
['Belize', 'member of', {'concept': 'social group'}] ['Belize', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i rdf:type ?q . VALUES ( ?q ) { ( ontology:social_group ) ( ontology:international_organization ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q474503 Q533046
P17
Q15617994
USER
Is Valençay located in Petershausen ?
(Q474503,P17,Q533046)
action is_in
entity Q533046
action find
entity Q474503
relation P17
['Q474503', 'P17', 'Q533046']
ASK WHERE { resource:Q474503 property:P17 resource:Q533046 }
Valençay Petershausen
action is_in
entity Petershausen
action find
entity Valençay
relation country
['Valençay', 'country', 'Petershausen']
ASK WHERE { resource:Valençay property:country resource:Petershausen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q474503,P17,Q533046)
action is_in
entity Q533046
action find
entity Q474503
relation P17
[ANSWER]
['Q474503', 'P17', 'Q533046']
ASK WHERE { resource:Q474503 property:P17 resource:Q533046 }
No
action is_in
entity Petershausen
action find
entity Valençay
relation country
['Valençay', 'country', 'Petershausen']
ASK WHERE { resource:Valençay property:country resource:Petershausen }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q45231 Q746946
P47
Q20667921
USER
Which french administrative divisions have an adjacent border with Coulounieix-Chamiers or Boulieu-lès-Annonay ?
OR((c(Q20667921),P47,Q746946), (c(Q20667921),P47,Q45231))
action filter_type
action union
action find_reverse
entity Q746946
relation P47
action find_reverse
entity Q45231
relation P47
type Q20667921
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q746946'], [{'concept': 'Q20667921'}, 'P47', 'Q45231']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q20667921 . { { ?b property:P47 resource:Q746946 } UNION { ?b property:P47 resource:Q45231 } } }
Boulieu-lès-Annonay Coulounieix-Chamiers
action filter_type
action union
action find_reverse
entity Coulounieix-Chamiers
relation shares border with
action find_reverse
entity Boulieu-lès-Annonay
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Coulounieix-Chamiers'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Boulieu-lès-Annonay']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:type_of_french_administrative_division . { { ?b property:shares_border_with resource:Coulounieix-Chamiers } UNION { ?b property:shares_border_with resource:Boulieu-lès-Annonay } } }
[]
type of french administrative division
Q1010864 Q45200 Q1076670 Q865748 Q1076582 Q238366 Q195507 Q1068696 Q273415 Q6588
SYSTEM
Coursac, Saint-Marcel-lès-Annonay, Marsac-sur-l'Isle, Saint-Clair, Notre-Dame-de-Sanilhac, Annonay, Savas, Burdignes, Davézieux, Périgueux
Q1010864 Q45200 Q1076670 Q865748 Q1076582 Q238366 Q195507 Q1068696 Q273415 Q6588
OR((c(Q20667921),P47,Q746946), (c(Q20667921),P47,Q45231))
action filter_type
action union
action find_reverse
entity Q746946
relation P47
action find_reverse
entity Q45231
relation P47
type Q20667921
[ANSWERS] have an adjacent border with Coulounieix-Chamiers or Boulieu-lès-Annonay
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q746946'], [{'concept': 'Q20667921'}, 'P47', 'Q45231']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q20667921 . { { ?b property:P47 resource:Q746946 } UNION { ?b property:P47 resource:Q45231 } } }
Coursac Saint-Marcel-lès-Annonay Marsac-sur-l'Isle Saint-Clair Notre-Dame-de-Sanilhac Annonay Savas Burdignes Davézieux Périgueux
Coursac, Saint-Marcel-lès-Annonay, Marsac-sur-l'Isle, Saint-Clair, Notre-Dame-de-Sanilhac, Annonay, Savas, Burdignes, Davézieux and Périgueux have an adjacent border with Coulounieix-Chamiers or Boulieu-lès-Annonay
Coursac Saint-Marcel-lès-Annonay Marsac-sur-l'Isle Saint-Clair Notre-Dame-de-Sanilhac Annonay Savas Burdignes Davézieux Périgueux
action filter_type
action union
action find_reverse
entity Coulounieix-Chamiers
relation shares border with
action find_reverse
entity Boulieu-lès-Annonay
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Coulounieix-Chamiers'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Boulieu-lès-Annonay']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:type_of_french_administrative_division . { { ?b property:shares_border_with resource:Coulounieix-Chamiers } UNION { ?b property:shares_border_with resource:Boulieu-lès-Annonay } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1471373
P1376
Q7275 Q20667921
USER
How many states have more number of french administrative divisions as their capital than Saloum ?
(c(Q20667921),P1376,c(Q7275))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action count
action filter_type
action find
entity Q1471373
relation P1376
type Q7275
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:Q20667921 . ?k rdf:type ontology:Q7275 . ?p property:P1376 ?k } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Q1471373 property:P1376 ?h . ?h rdf:type ontology:Q7275 } } . FILTER ( ?f > ?s ) }
Saloum
action count
action greater
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action count
action filter_type
action find
entity Saloum
relation capital of
type state
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:type_of_french_administrative_division . ?k rdf:type ontology:state . ?p property:capital_of ?k } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Saloum property:capital_of ?h . ?h rdf:type ontology:state } } . FILTER ( ?f > ?s ) }
[]
state type of french administrative division
SYSTEM
3
Q3456417 Q842091 Q112558
(c(Q20667921),P1376,c(Q7275))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action count
action filter_type
action find
entity Q1471373
relation P1376
type Q7275
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:Q20667921 . ?k rdf:type ontology:Q7275 . ?p property:P1376 ?k } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Q1471373 property:P1376 ?h . ?h rdf:type ontology:Q7275 } } . FILTER ( ?f > ?s ) }
Republic of Saint-Malo Duchy of Normandy Republic of Saugeais
3
action count
action greater
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action count
action filter_type
action find
entity Saloum
relation capital of
type state
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:type_of_french_administrative_division . ?k rdf:type ontology:state . ?p property:capital_of ?k } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Saloum property:capital_of ?h . ?h rdf:type ontology:state } } . FILTER ( ?f > ?s ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q5148517
P1376
Q7275 Q20667921
USER
And how about Colony and Protectorate of Nigeria?
(c(Q20667921),P1376,c(Q7275))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action count
action filter_type
action find
entity Q5148517
relation P1376
type Q7275
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P1376 ?m . ?m rdf:type ontology:Q7275 . ?g rdf:type ontology:Q20667921 } GROUP BY ?m } . FILTER ( ?u > ?z ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { resource:Q5148517 property:P1376 ?q . ?q rdf:type ontology:Q7275 } } }
Colony and Protectorate of Nigeria
action count
action greater
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action count
action filter_type
action find
entity Colony and Protectorate of Nigeria
relation capital of
type state
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:capital_of ?m . ?m rdf:type ontology:state . ?g rdf:type ontology:type_of_french_administrative_division } GROUP BY ?m } . FILTER ( ?u > ?z ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { resource:Colony_and_Protectorate_of_Nigeria property:capital_of ?q . ?q rdf:type ontology:state } } }
[]
state type of french administrative division
SYSTEM
3
Q3456417 Q842091 Q112558
(c(Q20667921),P1376,c(Q7275))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action count
action filter_type
action find
entity Q5148517
relation P1376
type Q7275
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P1376 ?m . ?m rdf:type ontology:Q7275 . ?g rdf:type ontology:Q20667921 } GROUP BY ?m } . FILTER ( ?u > ?z ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { resource:Q5148517 property:P1376 ?q . ?q rdf:type ontology:Q7275 } } }
Republic of Saint-Malo Duchy of Normandy Republic of Saugeais
3
action count
action greater
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action count
action filter_type
action find
entity Colony and Protectorate of Nigeria
relation capital of
type state
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:capital_of ?m . ?m rdf:type ontology:state . ?g rdf:type ontology:type_of_french_administrative_division } GROUP BY ?m } . FILTER ( ?u > ?z ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { resource:Colony_and_Protectorate_of_Nigeria property:capital_of ?q . ?q rdf:type ontology:state } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6588 Q991426
P190
Q15617994
USER
How many administrative territories are twin cities of Périgueux or Brtonigla ?
(Q6588,P190,c(Q15617994)) (Q991426,P190,c(Q15617994))
action count
action union
action filter_type
action find
entity Q6588
relation P190
type Q15617994
action filter_type
action find
entity Q991426
relation P190
type Q15617994
['Q6588', 'P190', {'concept': 'Q15617994'}] ['Q991426', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { ?y rdf:type ontology:Q15617994 . resource:Q6588 property:P190 ?y } UNION { resource:Q991426 property:P190 ?y . ?y rdf:type ontology:Q15617994 } }
Périgueux Brtonigla
action count
action union
action filter_type
action find
entity Périgueux
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Brtonigla
relation sister city
type designation for an administrative territorial entity
['Périgueux', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Brtonigla', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Périgueux property:sister_city ?y } UNION { resource:Brtonigla property:sister_city ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q82707 Q7042
(Q6588,P190,c(Q15617994)) (Q991426,P190,c(Q15617994))
action count
action union
action filter_type
action find
entity Q6588
relation P190
type Q15617994
action filter_type
action find
entity Q991426
relation P190
type Q15617994
[ANSWER]
['Q6588', 'P190', {'concept': 'Q15617994'}] ['Q991426', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { ?y rdf:type ontology:Q15617994 . resource:Q6588 property:P190 ?y } UNION { resource:Q991426 property:P190 ?y . ?y rdf:type ontology:Q15617994 } }
Greve in Chianti Amberg
2
action count
action union
action filter_type
action find
entity Périgueux
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Brtonigla
relation sister city
type designation for an administrative territorial entity
['Périgueux', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Brtonigla', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Périgueux property:sister_city ?y } UNION { resource:Brtonigla property:sister_city ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]