Simple Question (Direct)
Simple Question
Q3725808
P19
Q15617994
USER
Which administrative territory was Enrico Gualandi born in ?
(Q3725808,P19,c(Q15617994))
action filter_type
action find
entity Q3725808
relation P19
type Q15617994
['Q3725808', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q3725808 property:P19 ?r . ?r rdf:type ontology:Q15617994 }
Enrico Gualandi
action filter_type
action find
entity Enrico Gualandi
relation place of birth
type designation for an administrative territorial entity
['Enrico Gualandi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Enrico_Gualandi property:place_of_birth ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q50195
SYSTEM
Imola
Q50195
(Q3725808,P19,c(Q15617994))
action filter_type
action find
entity Q3725808
relation P19
type Q15617994
Enrico Gualandi was born in [ANSWER]
['Q3725808', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q3725808 property:P19 ?r . ?r rdf:type ontology:Q15617994 }
Imola
Enrico Gualandi was born in Imola
Imola
action filter_type
action find
entity Enrico Gualandi
relation place of birth
type designation for an administrative territorial entity
['Enrico Gualandi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Enrico_Gualandi property:place_of_birth ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q50195
P1444
Q878123
USER
Which racing finally halts at that administrative territory ?
(c(Q878123),P1444,Q50195)
action filter_type
action find_reverse
entity Q50195
relation P1444
type Q878123
[{'concept': 'Q878123'}, 'P1444', 'Q50195']
SELECT DISTINCT ?v WHERE { ?v property:P1444 resource:Q50195 . ?v rdf:type ontology:Q878123 }
Imola
action filter_type
action find_reverse
entity Imola
relation destination point
type racing
[{'concept': 'racing'}, 'destination point', 'Imola']
SELECT DISTINCT ?v WHERE { ?v property:destination_point resource:Imola . ?v rdf:type ontology:racing }
[]
racing
Q19947744
SYSTEM
2015 Giro d'Italia, Stage 11
Q19947744
(c(Q878123),P1444,Q50195)
action filter_type
action find_reverse
entity Q50195
relation P1444
type Q878123
[ANSWER] finally halts at that administrative territory
[{'concept': 'Q878123'}, 'P1444', 'Q50195']
SELECT DISTINCT ?v WHERE { ?v property:P1444 resource:Q50195 . ?v rdf:type ontology:Q878123 }
2015 Giro d'Italia, Stage 11
2015 Giro d'Italia, Stage 11 finally halts at that administrative territory
2015 Giro d'Italia, Stage 11
action filter_type
action find_reverse
entity Imola
relation destination point
type racing
[{'concept': 'racing'}, 'destination point', 'Imola']
SELECT DISTINCT ?v WHERE { ?v property:destination_point resource:Imola . ?v rdf:type ontology:racing }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q50195
P190
Q20667921
USER
Which french administrative division is a sister city of Imola ?
(c(Q20667921),P190,Q50195)
action filter_type
action find
entity Q50195
relation P190
type Q20667921
[{'concept': 'Q20667921'}, 'P190', 'Q50195']
SELECT DISTINCT ?w WHERE { resource:Q50195 property:P190 ?w . ?w rdf:type ontology:Q20667921 }
Imola
action filter_type
action find
entity Imola
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Imola']
SELECT DISTINCT ?w WHERE { resource:Imola property:sister_city ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q221968
SYSTEM
Gennevilliers
Q221968
(c(Q20667921),P190,Q50195)
action filter_type
action find
entity Q50195
relation P190
type Q20667921
[ANSWER] is a sister city of Imola
[{'concept': 'Q20667921'}, 'P190', 'Q50195']
SELECT DISTINCT ?w WHERE { resource:Q50195 property:P190 ?w . ?w rdf:type ontology:Q20667921 }
Gennevilliers
Gennevilliers is a sister city of Imola
Gennevilliers
action filter_type
action find
entity Imola
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Imola']
SELECT DISTINCT ?w WHERE { resource:Imola property:sister_city ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q221968
P1376
Q20667921
USER
Which french administrative divisions have that one have their first city ?
(Q221968,P1376,c(Q20667921))
action filter_type
action find
entity Q221968
relation P1376
type Q20667921
['Q221968', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q221968 property:P1376 ?v . ?v rdf:type ontology:Q20667921 }
Gennevilliers
action filter_type
action find
entity Gennevilliers
relation capital of
type type of french administrative division
['Gennevilliers', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Gennevilliers property:capital_of ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1525025 Q1525494
SYSTEM
canton of Gennevilliers-Nord, canton of Gennevilliers-Sud
Q1525025 Q1525494
(Q221968,P1376,c(Q20667921))
action filter_type
action find
entity Q221968
relation P1376
type Q20667921
[ANSWERS] have that one have their first city
['Q221968', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q221968 property:P1376 ?v . ?v rdf:type ontology:Q20667921 }
canton of Gennevilliers-Nord canton of Gennevilliers-Sud
Canton of Gennevilliers-Nord and canton of Gennevilliers-Sud have that one have their first city
canton of Gennevilliers-Nord canton of Gennevilliers-Sud
action filter_type
action find
entity Gennevilliers
relation capital of
type type of french administrative division
['Gennevilliers', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Gennevilliers property:capital_of ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P36
Q20667921
USER
How many french administrative divisions are associated to that french administrative division as the capital ?
(Q1525025,P36,c(Q20667921))
['Q1525025', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1525025 property:Q8137 ?z . ?z rdf:type ontology:Q20667921 }
['canton of Gennevilliers-Nord', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:canton_of_Gennevilliers-Nord property:capital ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Quantitative|Count|Single entity type|Clarification
Q1525025
SYSTEM
Did you mean canton of Gennevilliers-Nord ?
(Q1525025,P36,c(Q20667921)) (Q1525494,P36,c(Q20667921))
[ANSWER]
['Q1525025', 'P36', {'concept': 'Q20667921'}] ['Q1525494', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1525025 property:Q8137 ?z . ?z rdf:type ontology:Q20667921 }
Did you mean canton of Gennevilliers-Nord ?
canton of Gennevilliers-Nord
['canton of Gennevilliers-Nord', 'capital', {'concept': 'type of french administrative division'}] ['canton of Gennevilliers-Sud', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:canton_of_Gennevilliers-Nord property:capital ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1525025,P36,c(Q20667921))
['Q1525025', 'P36', {'concept': 'Q20667921'}]
['canton of Gennevilliers-Nord', 'capital', {'concept': 'type of french administrative division'}]
[]
SYSTEM
1
Q221968
(Q1525025,P36,c(Q20667921))
[ANSWER]
['Q1525025', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1525025 property:Q8137 ?z . ?z rdf:type ontology:Q20667921 }
Gennevilliers
1
['canton of Gennevilliers-Nord', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:canton_of_Gennevilliers-Nord property:capital ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q221968 Q857056
P190
Q56061
USER
How many administrative territories are twin city of Gennevilliers or Pendik ?
(c(Q56061),P190,Q221968) (c(Q56061),P190,Q857056)
action count
action union
action filter_type
action find_reverse
entity Q221968
relation P190
type Q56061
action filter_type
action find_reverse
entity Q857056
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q221968'] [{'concept': 'Q56061'}, 'P190', 'Q857056']
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { ?o rdf:type ontology:Q56061 . ?o property:P190 resource:Q221968 } UNION { ?o property:P190 resource:Q857056 . ?o rdf:type ontology:Q56061 } }
Gennevilliers Pendik
action count
action union
action filter_type
action find_reverse
entity Gennevilliers
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Pendik
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Gennevilliers'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Pendik']
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { ?o rdf:type ontology:administrative_territorial_entity . ?o property:sister_city resource:Gennevilliers } UNION { ?o property:sister_city resource:Pendik . ?o rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
SYSTEM
3
Q202453 Q311326 Q48370
(c(Q56061),P190,Q221968) (c(Q56061),P190,Q857056)
action count
action union
action filter_type
action find_reverse
entity Q221968
relation P190
type Q56061
action filter_type
action find_reverse
entity Q857056
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q221968'] [{'concept': 'Q56061'}, 'P190', 'Q857056']
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { ?o rdf:type ontology:Q56061 . ?o property:P190 resource:Q221968 } UNION { ?o property:P190 resource:Q857056 . ?o rdf:type ontology:Q56061 } }
Novi Pazar Al-Bireh Manchester
3
action count
action union
action filter_type
action find_reverse
entity Gennevilliers
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Pendik
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Gennevilliers'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Pendik']
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { ?o rdf:type ontology:administrative_territorial_entity . ?o property:sister_city resource:Gennevilliers } UNION { ?o property:sister_city resource:Pendik . ?o rdf:type ontology:administrative_territorial_entity } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q7275 Q20667921
USER
Which states have atleast 1 french administrative division as their county seat ?
(c(Q20667921),P1376,c(Q7275))
action atleast
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
value 1
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?i ) WHERE { ?h property:P1376 ?r . ?r rdf:type ontology:Q7275 . ?h rdf:type ontology:Q20667921 } GROUP BY ?r } . FILTER ( ?i >= 1 ) }
action atleast
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?i ) WHERE { ?h property:capital_of ?r . ?r rdf:type ontology:state . ?h rdf:type ontology:type_of_french_administrative_division } GROUP BY ?r } . FILTER ( ?i >= 1 ) }
[]
state type of french administrative division
Q3456417 Q842091 Q112558
SYSTEM
Republic of Saint-Malo, Duchy of Normandy, Republic of Saugeais
Q3456417 Q842091 Q112558
(c(Q20667921),P1376,c(Q7275))
action atleast
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
value 1
[ANSWERS] have atleast 1 french administrative division as their county seat
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?i ) WHERE { ?h property:P1376 ?r . ?r rdf:type ontology:Q7275 . ?h rdf:type ontology:Q20667921 } GROUP BY ?r } . FILTER ( ?i >= 1 ) }
Republic of Saint-Malo Duchy of Normandy Republic of Saugeais
Republic of Saint-Malo, Duchy of Normandy and Republic of Saugeais have atleast 1 french administrative division as their county seat
Republic of Saint-Malo Duchy of Normandy Republic of Saugeais
action atleast
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?i ) WHERE { ?h property:capital_of ?r . ?r rdf:type ontology:state . ?h rdf:type ontology:type_of_french_administrative_division } GROUP BY ?r } . FILTER ( ?i >= 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q193050
P1376
Q7275 Q515
USER
How many cities are the capital of more number of states than Érd ?
(c(Q515),P1376,c(Q7275))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q193050
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?e ) WHERE { ?i property:P1376 ?c . ?i rdf:type ontology:Q515 . ?c rdf:type ontology:Q7275 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Q193050 property:P1376 ?z . ?z rdf:type ontology:Q515 } } . FILTER ( ?e > ?m ) }
Érd
action count
action greater
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Érd
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?e ) WHERE { ?i property:capital_of ?c . ?i rdf:type ontology:city . ?c rdf:type ontology:state } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Érd property:capital_of ?z . ?z rdf:type ontology:city } } . FILTER ( ?e > ?m ) }
[]
state city
SYSTEM
53
Q3572 Q19689 Q8131 Q27860 Q3624 Q58650 Q71305 Q18970 Q80989 Q3926 Q5838 Q1899 Q1794 Q665 Q1486 Q220445 Q1461 Q23430 Q8684 Q3838 Q1069007 Q7568 Q1731 Q19660 Q1953 Q9005 Q1330294 Q2773 Q1854 Q308657 Q3826 Q68481 Q2936 Q7929221 Q11194 Q83247 Q11443 Q183584 Q2844 Q11725 Q73156 Q1865 Q18342086 Q72778 Q187136 Q107401 Q1761 Q2069869 Q726993 Q3919 Q1530 Q2999 Q16666
(c(Q515),P1376,c(Q7275))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q193050
relation P1376
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?e ) WHERE { ?i property:P1376 ?c . ?i rdf:type ontology:Q515 . ?c rdf:type ontology:Q7275 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Q193050 property:P1376 ?z . ?z rdf:type ontology:Q515 } } . FILTER ( ?e > ?m ) }
Tunis Tirana Palembang Jayapura Addis Ababa Zhangjiakou Ezhou Ambon Bhopal Pretoria Kabul Kyiv Frankfurt Lugdunum Buenos Aires Kuching Manila Ulaanbaatar Seoul Kinshasa Washukanni Yogyakarta Dresden Bucharest Yerevan Brussels Jiankang Braunschweig Ho Chi Minh City Minas Tirith Muscat Fuzhou Oldenburg Vijaya Sarajevo Braga Kediri Lanzhou Brasília Chongqing Linfen Kuala Lumpur Oyo-Ile Taiyuan Luoyang Sivas Dublin Edoras Cotabato City Gaborone Baghdad Würzburg Nanjing
53
action count
action greater
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Érd
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?e ) WHERE { ?i property:capital_of ?c . ?i rdf:type ontology:city . ?c rdf:type ontology:state } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Érd property:capital_of ?z . ?z rdf:type ontology:city } } . FILTER ( ?e > ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q3870
P1376
Q7275 Q515
USER
And also tell me about Nairobi?
(c(Q515),P1376,c(Q7275))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q3870
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?a ) WHERE { ?m property:P1376 ?h . ?h rdf:type ontology:Q7275 . ?m rdf:type ontology:Q515 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:Q3870 property:P1376 ?b . ?b rdf:type ontology:Q515 } } . FILTER ( ?a > ?r ) }
Nairobi
action count
action greater
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Nairobi
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?a ) WHERE { ?m property:capital_of ?h . ?h rdf:type ontology:state . ?m rdf:type ontology:city } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:Nairobi property:capital_of ?b . ?b rdf:type ontology:city } } . FILTER ( ?a > ?r ) }
[]
state city
SYSTEM
53
Q3572 Q19689 Q8131 Q27860 Q3624 Q58650 Q71305 Q18970 Q80989 Q3926 Q5838 Q1899 Q1794 Q665 Q1486 Q220445 Q1461 Q23430 Q8684 Q3838 Q1069007 Q7568 Q1731 Q19660 Q1953 Q9005 Q1330294 Q2773 Q1854 Q308657 Q3826 Q68481 Q2936 Q7929221 Q11194 Q83247 Q11443 Q183584 Q2844 Q11725 Q73156 Q1865 Q18342086 Q72778 Q187136 Q107401 Q1761 Q2069869 Q726993 Q3919 Q1530 Q2999 Q16666
(c(Q515),P1376,c(Q7275))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q3870
relation P1376
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?a ) WHERE { ?m property:P1376 ?h . ?h rdf:type ontology:Q7275 . ?m rdf:type ontology:Q515 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:Q3870 property:P1376 ?b . ?b rdf:type ontology:Q515 } } . FILTER ( ?a > ?r ) }
Tunis Tirana Palembang Jayapura Addis Ababa Zhangjiakou Ezhou Ambon Bhopal Pretoria Kabul Kyiv Frankfurt Lugdunum Buenos Aires Kuching Manila Ulaanbaatar Seoul Kinshasa Washukanni Yogyakarta Dresden Bucharest Yerevan Brussels Jiankang Braunschweig Ho Chi Minh City Minas Tirith Muscat Fuzhou Oldenburg Vijaya Sarajevo Braga Kediri Lanzhou Brasília Chongqing Linfen Kuala Lumpur Oyo-Ile Taiyuan Luoyang Sivas Dublin Edoras Cotabato City Gaborone Baghdad Würzburg Nanjing
53
action count
action greater
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Nairobi
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?a ) WHERE { ?m property:capital_of ?h . ?h rdf:type ontology:state . ?m rdf:type ontology:city } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:Nairobi property:capital_of ?b . ?b rdf:type ontology:city } } . FILTER ( ?a > ?r ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q842091
P127
Q7743
USER
Which home belongs to Duchy of Normandy ?
(c(Q7743),P127,Q842091)
action filter_type
action find_reverse
entity Q842091
relation P127
type Q7743
[{'concept': 'Q7743'}, 'P127', 'Q842091']
SELECT DISTINCT ?u WHERE { ?u property:P127 resource:Q842091 . ?u rdf:type ontology:Q7743 }
Duchy of Normandy
action filter_type
action find_reverse
entity Duchy of Normandy
relation owned by
type home
[{'concept': 'home'}, 'owned by', 'Duchy of Normandy']
SELECT DISTINCT ?u WHERE { ?u property:owned_by resource:Duchy_of_Normandy . ?u rdf:type ontology:home }
[]
home
Q2968752
SYSTEM
Castle of Caen
Q2968752
(c(Q7743),P127,Q842091)
action filter_type
action find_reverse
entity Q842091
relation P127
type Q7743
The [ANSWER] belongs to Duchy of Normandy
[{'concept': 'Q7743'}, 'P127', 'Q842091']
SELECT DISTINCT ?u WHERE { ?u property:P127 resource:Q842091 . ?u rdf:type ontology:Q7743 }
Castle of Caen
The Castle of Caen belongs to Duchy of Normandy
Castle of Caen
action filter_type
action find_reverse
entity Duchy of Normandy
relation owned by
type home
[{'concept': 'home'}, 'owned by', 'Duchy of Normandy']
SELECT DISTINCT ?u WHERE { ?u property:owned_by resource:Duchy_of_Normandy . ?u rdf:type ontology:home }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q842091
P20
Q502895
USER
Which person has that state as the area of death ?
(c(Q502895),P20,Q2968752)
action filter_type
action find_reverse
entity Q842091
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q2968752']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q842091 . ?q rdf:type ontology:Q502895 }
Duchy of Normandy
action filter_type
action find_reverse
entity Duchy of Normandy
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Castle of Caen']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:Duchy_of_Normandy . ?q rdf:type ontology:common_name }
[]
common name
Q2733546
SYSTEM
Judith of Brittany
Q2733546
(c(Q502895),P20,Q2968752)
action filter_type
action find_reverse
entity Q842091
relation P20
type Q502895
[ANSWER] has that state as the area of death
[{'concept': 'Q502895'}, 'P20', 'Q2968752']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q842091 . ?q rdf:type ontology:Q502895 }
Judith of Brittany
Judith of Brittany has that state as the area of death
Judith of Brittany
action filter_type
action find_reverse
entity Duchy of Normandy
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Castle of Caen']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:Duchy_of_Normandy . ?q rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2733546 Q3173713
P25
Q502895
USER
Does Eleanor of Normandy have that one as mom ?
(Q3173713,P25,Q2733546)
action is_in
entity Q2733546
action find
entity Q3173713
relation P25
['Q3173713', 'P25', 'Q2733546']
ASK WHERE { resource:Q3173713 property:P25 resource:Q2733546 }
Judith of Brittany Eleanor of Normandy
action is_in
entity Judith of Brittany
action find
entity Eleanor of Normandy
relation mother
['Eleanor of Normandy', 'mother', 'Judith of Brittany']
ASK WHERE { resource:Eleanor_of_Normandy property:mother resource:Judith_of_Brittany }
[]
common name
SYSTEM
YES
(Q3173713,P25,Q2733546)
action is_in
entity Q2733546
action find
entity Q3173713
relation P25
[ANSWER]
['Q3173713', 'P25', 'Q2733546']
ASK WHERE { resource:Q3173713 property:P25 resource:Q2733546 }
Yes
action is_in
entity Judith of Brittany
action find
entity Eleanor of Normandy
relation mother
['Eleanor of Normandy', 'mother', 'Judith of Brittany']
ASK WHERE { resource:Eleanor_of_Normandy property:mother resource:Judith_of_Brittany }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2733546
P40
Q502895
USER
How many people are an offsprings of Judith of Brittany ?
(Q2733546,P40,c(Q502895))
action count
action filter_type
action find
entity Q2733546
relation P40
type Q502895
['Q2733546', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Q2733546 property:P40 ?k . ?k rdf:type ontology:Q502895 }
Judith of Brittany
action count
action filter_type
action find
entity Judith of Brittany
relation child
type common name
['Judith of Brittany', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Judith_of_Brittany property:child ?k . ?k rdf:type ontology:common_name }
[]
common name
SYSTEM
4
Q41381 Q41380 Q2728803 Q3173713
(Q2733546,P40,c(Q502895))
action count
action filter_type
action find
entity Q2733546
relation P40
type Q502895
[ANSWER]
['Q2733546', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Q2733546 property:P40 ?k . ?k rdf:type ontology:Q502895 }
Richard III, Duke of Normandy Robert I, Duke of Normandy Alice of Normandy Eleanor of Normandy
4
action count
action filter_type
action find
entity Judith of Brittany
relation child
type common name
['Judith of Brittany', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Judith_of_Brittany property:child ?k . ?k rdf:type ontology:common_name }
[]