Simple Question (Direct)
Simple Question
Q1269048
P172
Q2472587
USER
Which people does Donna Brazile have as ethnic origin ?
(Q1269048,P172,c(Q2472587))
action filter_type
action find
entity Q1269048
relation P172
type Q2472587
['Q1269048', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?q WHERE { resource:Q1269048 property:P172 ?q . ?q rdf:type ontology:Q2472587 }
Donna Brazile
action filter_type
action find
entity Donna Brazile
relation ethnic group
type people
['Donna Brazile', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?q WHERE { resource:Donna_Brazile property:ethnic_group ?q . ?q rdf:type ontology:people }
[]
people
Q49085
SYSTEM
African Americans
Q49085
(Q1269048,P172,c(Q2472587))
action filter_type
action find
entity Q1269048
relation P172
type Q2472587
Donna Brazile has raised [ANSWER] as ethnic origin
['Q1269048', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?q WHERE { resource:Q1269048 property:P172 ?q . ?q rdf:type ontology:Q2472587 }
African Americans
Donna Brazile has raised African Americans as ethnic origin
African Americans
action filter_type
action find
entity Donna Brazile
relation ethnic group
type people
['Donna Brazile', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?q WHERE { resource:Donna_Brazile property:ethnic_group ?q . ?q rdf:type ontology:people }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1269048
P21
Q290
USER
Which sex does Donna Brazile have ?
(Q1269048,P21,c(Q290))
action filter_type
action find
entity Q1269048
relation P21
type Q290
['Q1269048', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . resource:Q1269048 property:P21 ?y }
Donna Brazile
action filter_type
action find
entity Donna Brazile
relation gender
type sex
['Donna Brazile', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . resource:Donna_Brazile property:gender ?y }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q1269048,P21,c(Q290))
action filter_type
action find
entity Q1269048
relation P21
type Q290
Donna Brazile has a [ANSWER]
['Q1269048', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . resource:Q1269048 property:P21 ?y }
female
Donna Brazile has a female
female
action filter_type
action find
entity Donna Brazile
relation gender
type sex
['Donna Brazile', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . resource:Donna_Brazile property:gender ?y }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581072 Q1371722
P21
Q502895
USER
Is Etta Wilken a that sex ?
(Q1371722,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q1371722
relation P21
['Q1371722', 'P21', 'Q6581072']
ASK WHERE { resource:Q1371722 property:P21 resource:Q6581072 }
female Etta Wilken
action is_in
entity female
action find
entity Etta Wilken
relation gender
['Etta Wilken', 'gender', 'female']
ASK WHERE { resource:Etta_Wilken property:gender resource:female }
[]
common name
SYSTEM
YES
(Q1371722,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q1371722
relation P21
[ANSWER]
['Q1371722', 'P21', 'Q6581072']
ASK WHERE { resource:Q1371722 property:P21 resource:Q6581072 }
Yes
action is_in
entity female
action find
entity Etta Wilken
relation gender
['Etta Wilken', 'gender', 'female']
ASK WHERE { resource:Etta_Wilken property:gender resource:female }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q188399 Q1371722
P47 P27
Q1048835
USER
Which political territories do Etta Wilken belong to or are adjacent to Central Bohemian Region ?
OR((Q1371722,P27,c(Q1048835)), (Q188399,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1371722
relation P27
action find
entity Q188399
relation P47
type Q1048835
{'OR': [['Q1371722', 'P27', {'concept': 'Q1048835'}], ['Q188399', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q188399 property:P47 ?q } UNION { resource:Q1371722 property:P27 ?q } } . ?q rdf:type ontology:Q1048835 }
Central Bohemian Region Etta Wilken
action filter_type
action union
action find
entity Etta Wilken
relation country of citizenship
action find
entity Central Bohemian Region
relation shares border with
type political territorial entity
{'OR': [['Etta Wilken', 'country of citizenship', {'concept': 'political territorial entity'}], ['Central Bohemian Region', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Central_Bohemian_Region property:shares_border_with ?q } UNION { resource:Etta_Wilken property:country_of_citizenship ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q193295 Q46070 Q188373 Q193266 Q190930 Q183 Q192702 Q193317
SYSTEM
Hradec Králové Region, Plzeň Region, South Bohemia Region, Liberec Region, Vysočina Region, Germany, Ústí nad Labem Region, Pardubice Region
Q193295 Q46070 Q188373 Q193266 Q190930 Q183 Q192702 Q193317
OR((Q1371722,P27,c(Q1048835)), (Q188399,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1371722
relation P27
action find
entity Q188399
relation P47
type Q1048835
Etta Wilken belong to Nazi [ANSWERS] or are adjacent to Central Bohemian Region
{'OR': [['Q1371722', 'P27', {'concept': 'Q1048835'}], ['Q188399', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q188399 property:P47 ?q } UNION { resource:Q1371722 property:P27 ?q } } . ?q rdf:type ontology:Q1048835 }
Hradec Králové Region Plzeň Region South Bohemia Region Liberec Region Vysočina Region Germany Ústí nad Labem Region Pardubice Region
Etta Wilken belong to Nazi Hradec Králové Region, Plzeň Region, South Bohemia Region, Liberec Region, Vysočina Region, Germany, Ústí nad Labem Region and Pardubice Region or are adjacent to Central Bohemian Region
Hradec Králové Region Plzeň Region South Bohemia Region Liberec Region Vysočina Region Germany Ústí nad Labem Region Pardubice Region
action filter_type
action union
action find
entity Etta Wilken
relation country of citizenship
action find
entity Central Bohemian Region
relation shares border with
type political territorial entity
{'OR': [['Etta Wilken', 'country of citizenship', {'concept': 'political territorial entity'}], ['Central Bohemian Region', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Central_Bohemian_Region property:shares_border_with ?q } UNION { resource:Etta_Wilken property:country_of_citizenship ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q427330
P206
Q337567 Q15324 Q1048835
USER
Which political territories are located next to around the same number of still waterss or bodies of water as Salobreña ?
(c(Q1048835),P206,c(Q337567)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P206
type Q1048835
type Q337567
action find_tuple_counts
relation P206
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q427330
relation P206
type Q337567
type Q15324
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?n ) { ( ontology:Q337567 ) ( ontology:Q15324 ) } . ?h rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { resource:Q427330 property:P206 ?l . { { ?l rdf:type ontology:Q337567 } UNION { ?l rdf:type ontology:Q15324 } } } } . FILTER ( ?g = ?u ) }
Salobreña
action approx
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Salobreña
relation located next to body of water
type still waters
type body of water
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?n ) { ( ontology:still_waters ) ( ontology:body_of_water ) } . ?h rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { resource:Salobreña property:located_next_to_body_of_water ?l . { { ?l rdf:type ontology:still_waters } UNION { ?l rdf:type ontology:body_of_water } } } } . FILTER ( ?g = ?u ) }
[]
still waters body of water political territorial entity
Q16 Q643919 Q920391
SYSTEM
Canada, Torfaen County Borough, La Orotava
Q736872 Q434192 Q691567 Q21590062 Q434053 Q782910 Q1447512 Q1628271 Q2044159 Q49562 Q52626 Q677038 Q540185 Q484552 Q433632 Q1470810 Q983556 Q193780 Q635308 Q741749 Q983465 Q2772 Q4359878 Q353618 Q4524665 Q983628 Q846153 Q925913 Q830969 Q846159 Q1324548 Q962773 Q12071 Q985601 Q615809 Q565002 Q1905388 Q16 Q390069 Q11339 Q55845 Q210887 Q2323549 Q594892 Q582901 Q898856 Q1853429 Q4408930 Q587114 Q434321 Q11492 Q11263 Q915283 Q11294004 Q4321529 Q661198 Q741765 Q985598 Q1617562 Q493933 Q913483 Q572542 Q13148 Q13149 Q716384 Q499184 Q13462 Q986364 Q956757 Q1798827 Q2244278 Q693258 Q736926 Q433918 Q434019 Q986359 Q575670 Q926410 Q1768232 Q698246 Q15907 Q624967 Q1606460 Q832984 Q11286 Q13150 Q913492 Q1628788 Q13154 Q176624 Q2451327 Q24342199 Q11811 Q426350 Q738674 Q7165 Q983433 Q524431 Q985586 Q1248474 Q11296 Q13424648 Q277302 Q628446 Q366948 Q492741 Q11822 Q932914 Q492748 Q904566 Q434150 Q944264 Q943431 Q920391 Q399702 Q491786 Q2140 Q985599 Q983635 Q706892 Q615061 Q953876 Q3741 Q657800 Q638013 Q492737 Q433958 Q492735 Q1588135 Q4469165 Q827393 Q11304 Q1260011 Q737440 Q657738 Q584446 Q427330 Q682964 Q171852 Q1607872 Q2110 Q433986 Q501077 Q80967 Q994034 Q586584 Q983577 Q42314 Q611250 Q615916 Q986727 Q181633 Q643919 Q487268 Q207176 Q736888 Q175057 Q398588 Q1110355 Q434173 Q575639 Q434286 Q594961 Q613832 Q491929 Q947285
(c(Q1048835),P206,c(Q337567)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P206
type Q1048835
type Q337567
action find_tuple_counts
relation P206
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q427330
relation P206
type Q337567
type Q15324
[ANSWERS] are located next to around the same number of still waterss or bodies of water as Salobreña
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?n ) { ( ontology:Q337567 ) ( ontology:Q15324 ) } . ?h rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { resource:Q427330 property:P206 ?l . { { ?l rdf:type ontology:Q337567 } UNION { ?l rdf:type ontology:Q15324 } } } } . FILTER ( ?g = ?u ) }
Ayamonte San Andrés y Sauces Les Dirouilles Antarctic Treaty area Garafía El Sauzal Chantada Soutomaior Llanybydder Adra Formentera San Miguel de Abona Puerto del Rosario Algeciras Santa Cruz de La Palma Pierres de Lecq La Guancha Almuñécar Vallehermoso, Santa Cruz de Tenerife Chipiona Santa Eulària des Riu West Sumatra Pisocine Adeje Szychtory Sant Joan de Labritja San Roque Los Barrios Betancuria Puerto Real El Pinar, Canary Islands San Bartolomé, Las Palmas Vilassar de Mar La Victoria de Acentejo Sorvilán Albuñol L'Alcúdia de Crespins Canada Agaete Llançà Telde Sanlúcar de Barrameda Yaiza, Las Palmas La Oliva Lújar Jethou Valverde Sasiv Itamaracá Villa de Mazo Mataró Cadaqués Santiago del Teide Newport City Nuśmice Pájara San Fernando Moya, Las Palmas Nigrán El Ejido Casares Icod de los Vinos La Línea de la Concepción Nerja Arucas, Las Palmas Roquetas de Mar Begur San Juan de la Rambla, Santa Cruz de Tenerife Gáldar, Las Palmas La Frontera Tías, Las Palmas San Bartolomé de Tirajana Isla Cristina Barlovento, Santa Cruz de Tenerife Fuencaliente Santa María de Guía de Gran Canaria Antigua, Fuerteventura Algarrobo Trillo Arona, Tenerife Rota Arafo Malpica de Tajo Conil de la Frontera Castelló d'Empúries Torrox Manilva El Puente del Arzobispo Barbate El Rosario, Tenerife Sé City and County of Cardiff El Port de la Selva Tazacorte Santa Lucía de Tirajana Portbou Güímar Fasnia Tuineje, Las Palmas Rincón de la Victoria Colera Troitske Chiclana de la Frontera Mogán, Las Palmas Los Llanos de Aridane Vélez-Málaga Roses Alajeró, Santa Cruz de Tenerife Estepona Brecqhou Puntagorda Tacoronte, Santa Cruz de Tenerife Granadilla de Abona La Orotava Agüimes, Las Palmas Calvià North Sumatra Province Ingenio, Las Palmas Sant Josep de sa Talaia Artenara, Las Palmas Rubite Los Realejos Special Region of Yogyakarta Santa Úrsula Tinajo, Las Palmas Torremolinos Breña Alta Fuengirola Haría, Las Palmas Uhrynów Vejer de la Frontera L'Escala Hermigua Teguise Arico Valle Gran Rey Salobreña Los Silos Odessa Oblast Piedralaves Lampung Province Breña Baja Lepe Outer Hebrides Variazh Nînovîci, La Matanza de Acentejo Channel Islands Polopos Vasilivka La Aldea de San Nicolás Mykolaiv Oblast Torfaen County Borough Candelaria Monmouthshire Punta Umbría Fernando de Noronha Agulo Níjar Puntallana Gualchos Tijarafe Buenavista del Norte Mañón Berja Enix, Spain
Canada, Torfaen County Borough and La Orotava are located next to around the same number of still waterss or bodies of water as Salobreña
Canada Torfaen County Borough La Orotava
action approx
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Salobreña
relation located next to body of water
type still waters
type body of water
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?n ) { ( ontology:still_waters ) ( ontology:body_of_water ) } . ?h rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { resource:Salobreña property:located_next_to_body_of_water ?l . { { ?l rdf:type ontology:still_waters } UNION { ?l rdf:type ontology:body_of_water } } } } . FILTER ( ?g = ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q217829
P206
Q337567 Q15324 Q1048835
USER
And what about Ceredigion?
(c(Q1048835),P206,c(Q337567)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P206
type Q1048835
type Q337567
action find_tuple_counts
relation P206
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q217829
relation P206
type Q337567
type Q15324
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?g ) WHERE { VALUES ( ?y ) { ( ontology:Q15324 ) ( ontology:Q337567 ) } . ?v rdf:type ?y } GROUP BY ?r } . FILTER ( ?g = ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { VALUES ( ?a ) { ( ontology:Q337567 ) ( ontology:Q15324 ) } . ?p rdf:type ?a } . resource:Q217829 property:P206 ?p } } }
Ceredigion
action approx
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Ceredigion
relation located next to body of water
type still waters
type body of water
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?g ) WHERE { VALUES ( ?y ) { ( ontology:body_of_water ) ( ontology:still_waters ) } . ?v rdf:type ?y } GROUP BY ?r } . FILTER ( ?g = ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { VALUES ( ?a ) { ( ontology:still_waters ) ( ontology:body_of_water ) } . ?p rdf:type ?a } . resource:Ceredigion property:located_next_to_body_of_water ?p } } }
[]
still waters body of water political territorial entity
Q35 Q40 Q217840
SYSTEM
Denmark, Austria, Carmarthenshire
Q1649616 Q1228773 Q657407 Q1866 Q844784 Q2012050 Q1614800 Q492312 Q7206212 Q5065 Q5067 Q5068 Q18356359 Q147774 Q217829 Q7451347 Q40 Q5095 Q18350152 Q3557 Q804466 Q5096 Q492420 Q35 Q5017377 Q917886 Q6674900 Q7521776 Q616847 Q1637424 Q1443906 Q13751 Q847329 Q817971 Q16851746 Q1634820 Q1447802 Q217840 Q7130989 Q100166 Q163271 Q5437809 Q1823 Q3540 Q1443992 Q1631163 Q5078 Q1637406 Q743849 Q650682 Q748078 Q4481 Q1645555 Q5939706 Q3903 Q4673688 Q3724 Q1391437 Q18359182 Q171334 Q847127 Q5616614 Q47134 Q1623000 Q18357018 Q505610 Q607474 Q3891 Q168159 Q18351821 Q3586 Q936264 Q7684726 Q5197069 Q3906 Q824076 Q597201 Q6298722 Q697126
(c(Q1048835),P206,c(Q337567)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P206
type Q1048835
type Q337567
action find_tuple_counts
relation P206
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q217829
relation P206
type Q337567
type Q15324
[ANSWERS]
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?g ) WHERE { VALUES ( ?y ) { ( ontology:Q15324 ) ( ontology:Q337567 ) } . ?v rdf:type ?y } GROUP BY ?r } . FILTER ( ?g = ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { VALUES ( ?a ) { ( ontology:Q337567 ) ( ontology:Q15324 ) } . ?p rdf:type ?a } . resource:Q217829 property:P206 ?p } } }
Orio Plentzia Sopela Bangka–Belitung Islands Vale of Glamorgan Donetsk Oblast Val de San Vicente Hondarribia Poblacion Central Sulawesi Province Gorontalo Province North Sulawesi Province Manipulon Zarautz Ceredigion Sentinela Austria Papua Loguingot Central Java Province Bakio West Papua Getxo Denmark Cagting Santurtzi Looc, Mandaue Sinandigan Ribamontán al Mar Miengo Arnuero Biliran Comillas Conwy County Borough Caparangasan Barreiros Noja Carmarthenshire Pangpang Orkney Islands Kherson Oblast Fatima Aceh Banten Province Bareyo Aia South Sulawesi Ruiloba Valdáliga Denbighshire Neath Port Talbot County Borough Barrika Liendo Humayhumay North Kalimantan Achila West Java Province Alfoz de Lloredo Botlog Island Zaporizhzhya Oblast Pasaia Guintabo-an Shetland Piélagos Bayas Island Flintshire Muskiz Kalimantan Tengah Anglesey Malangabang East Java Lemoiz Tapon Cuya Kalimantan Selatan Ribadeo Lake of the Woods, Ontario Juagdan Bridgend County Borough
Denmark Austria Carmarthenshire
action approx
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Ceredigion
relation located next to body of water
type still waters
type body of water
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?g ) WHERE { VALUES ( ?y ) { ( ontology:body_of_water ) ( ontology:still_waters ) } . ?v rdf:type ?y } GROUP BY ?r } . FILTER ( ?g = ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { VALUES ( ?a ) { ( ontology:still_waters ) ( ontology:body_of_water ) } . ?p rdf:type ?a } . resource:Ceredigion property:located_next_to_body_of_water ?p } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P137
Q811430 Q170584
USER
How many constructions and projects are the administrator of Germany ?
(c(Q811430),P137,Q183) (c(Q170584),P137,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P137
type Q811430
action filter_type
action find_reverse
entity Q183
relation P137
type Q170584
[{'concept': 'Q811430'}, 'P137', 'Q183'] [{'concept': 'Q170584'}, 'P137', 'Q183']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:P137 resource:Q183 . ?g rdf:type ontology:Q811430 } UNION { ?g property:P137 resource:Q183 . ?g rdf:type ontology:Q170584 } }
Germany
action count
action union
action filter_type
action find_reverse
entity Germany
relation operator
type construction
action filter_type
action find_reverse
entity Germany
relation operator
type project
[{'concept': 'construction'}, 'operator', 'Germany'] [{'concept': 'project'}, 'operator', 'Germany']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:operator resource:Germany . ?g rdf:type ontology:construction } UNION { ?g property:operator resource:Germany . ?g rdf:type ontology:project } }
[]
construction project
SYSTEM
1 constructions and 1 projects
Q700996 Q324833
(c(Q811430),P137,Q183) (c(Q170584),P137,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P137
type Q811430
action filter_type
action find_reverse
entity Q183
relation P137
type Q170584
[ANSWER]
[{'concept': 'Q811430'}, 'P137', 'Q183'] [{'concept': 'Q170584'}, 'P137', 'Q183']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:P137 resource:Q183 . ?g rdf:type ontology:Q811430 } UNION { ?g property:P137 resource:Q183 . ?g rdf:type ontology:Q170584 } }
Stuttgart 21 Embassy of Germany, Washington
1 constructions and 1 projects
action count
action union
action filter_type
action find_reverse
entity Germany
relation operator
type construction
action filter_type
action find_reverse
entity Germany
relation operator
type project
[{'concept': 'construction'}, 'operator', 'Germany'] [{'concept': 'project'}, 'operator', 'Germany']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:operator resource:Germany . ?g rdf:type ontology:construction } UNION { ?g property:operator resource:Germany . ?g rdf:type ontology:project } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q920391
P19 P21
Q502895
USER
Which people have location of birth at La Orotava and have male as the sex ?
AND((c(Q502895),P19,Q920391), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q920391
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q920391'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P19 resource:Q920391 . ?i property:P21 resource:Q6581097 }
male La Orotava
action filter_type
action intersection
action find_reverse
entity La Orotava
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'La Orotava'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:place_of_birth resource:La_Orotava . ?i property:gender resource:male }
[]
common name
Q9009491 Q6300858 Q1406652 Q16301892 Q328466 Q135326 Q5290358 Q16566806 Q12161371 Q20670517
SYSTEM
Some of them are Isidro García García, Juan Ramón García, Fernando Estévez, Luiso Saavedra, Toñito, Tomás de Iriarte y Oropesa, Domingo Cullen, Felipe Martín Martín, Cristóbal Hernández de Quintana, Santiago González Suárez
Q12161371 Q6300858 Q24061045 Q742304 Q9009491 Q16566806 Q5290358 Q16301892 Q1406652 Q5483171 Q135326 Q328466 Q16617545 Q20670517
AND((c(Q502895),P19,Q920391), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q920391
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have location of birth at La Orotava and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q920391'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P19 resource:Q920391 . ?i property:P21 resource:Q6581097 }
Cristóbal Hernández de Quintana Juan Ramón García Matías de Escobar y Llamas Diego Rodríguez Fernández Isidro García García Felipe Martín Martín Domingo Cullen Luiso Saavedra Fernando Estévez Francisco Bahamonde De Lugo Tomás de Iriarte y Oropesa Toñito Pedro Nolasco Benítez de Lugo Santiago González Suárez
Isidro García García, Juan Ramón García, Fernando Estévez, Luiso Saavedra, Toñito, Tomás de Iriarte y Oropesa, Domingo Cullen, Felipe Martín Martín, Cristóbal Hernández de Quintana and Santiago González Suárez have location of birth at La Orotava and have male as the sex
Isidro García García Juan Ramón García Fernando Estévez Luiso Saavedra Toñito Tomás de Iriarte y Oropesa Domingo Cullen Felipe Martín Martín Cristóbal Hernández de Quintana Santiago González Suárez
action filter_type
action intersection
action find_reverse
entity La Orotava
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'La Orotava'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:place_of_birth resource:La_Orotava . ?i property:gender resource:male }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6300858
P106
Q12737077
USER
What is the job of that person ?
(Q6300858,P106,c(Q12737077))
action filter_type
action find
entity Q6300858
relation P106
type Q12737077
['Q6300858', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q6300858 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Juan Ramón García
action filter_type
action find
entity Juan Ramón García
relation occupation
type occupation
['Juan Ramón García', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Juan_Ramón_García property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q328466
SYSTEM
Did you mean Toñito ?
Q9009491 Q6300858 Q1406652 Q16301892 Q328466 Q135326 Q5290358 Q16566806 Q12161371 Q20670517
(Q9009491,P106,c(Q12737077)) (Q6300858,P106,c(Q12737077)) (Q1406652,P106,c(Q12737077)) (Q16301892,P106,c(Q12737077)) (Q328466,P106,c(Q12737077)) (Q135326,P106,c(Q12737077)) (Q5290358,P106,c(Q12737077)) (Q16566806,P106,c(Q12737077)) (Q12161371,P106,c(Q12737077)) (Q20670517,P106,c(Q12737077))
[ANSWER]
['Q9009491', 'P106', {'concept': 'Q12737077'}] ['Q6300858', 'P106', {'concept': 'Q12737077'}] ['Q1406652', 'P106', {'concept': 'Q12737077'}] ['Q16301892', 'P106', {'concept': 'Q12737077'}] ['Q328466', 'P106', {'concept': 'Q12737077'}] ['Q135326', 'P106', {'concept': 'Q12737077'}] ['Q5290358', 'P106', {'concept': 'Q12737077'}] ['Q16566806', 'P106', {'concept': 'Q12737077'}] ['Q12161371', 'P106', {'concept': 'Q12737077'}] ['Q20670517', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q6300858 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Isidro García García Juan Ramón García Fernando Estévez Luiso Saavedra Toñito Tomás de Iriarte y Oropesa Domingo Cullen Felipe Martín Martín Cristóbal Hernández de Quintana Santiago González Suárez
Did you mean Toñito ?
Toñito
['Isidro García García', 'occupation', {'concept': 'occupation'}] ['Juan Ramón García', 'occupation', {'concept': 'occupation'}] ['Fernando Estévez', 'occupation', {'concept': 'occupation'}] ['Luiso Saavedra', 'occupation', {'concept': 'occupation'}] ['Toñito', 'occupation', {'concept': 'occupation'}] ['Tomás de Iriarte y Oropesa', 'occupation', {'concept': 'occupation'}] ['Domingo Cullen', 'occupation', {'concept': 'occupation'}] ['Felipe Martín Martín', 'occupation', {'concept': 'occupation'}] ['Cristóbal Hernández de Quintana', 'occupation', {'concept': 'occupation'}] ['Santiago González Suárez', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Juan_Ramón_García property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Juan Ramón García. Could you tell me the answer for that?
(Q6300858,P106,c(Q12737077))
Q6300858
['Q6300858', 'P106', {'concept': 'Q12737077'}]
['Juan Ramón García', 'occupation', {'concept': 'occupation'}]
[]
Q937857
SYSTEM
association football player
Q937857
(Q6300858,P106,c(Q12737077))
action filter_type
action find
entity Q6300858
relation P106
type Q12737077
The job of that person is an [ANSWER]
['Q6300858', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q6300858 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
association football player
The job of that person is an association football player
association football player
action filter_type
action find
entity Juan Ramón García
relation occupation
type occupation
['Juan Ramón García', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Juan_Ramón_García property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P106
Q874405 Q20724701
USER
How many social groups or city or town in Armenias have that occupation as his/her means of employment ?
(c(Q874405),P106,Q937857) (c(Q20724701),P106,Q937857) (c(Q874405),P106,Q937857) (c(Q20724701),P106,Q937857)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P106
type Q874405
action filter_type
action find_reverse
entity Q937857
relation P106
type Q20724701
[{'concept': 'Q874405'}, 'P106', 'Q937857'] [{'concept': 'Q20724701'}, 'P106', 'Q937857'] [{'concept': 'Q874405'}, 'P106', 'Q937857'] [{'concept': 'Q20724701'}, 'P106', 'Q937857']
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:Q874405 ) ( ontology:Q20724701 ) } }
action count
action union
action filter_type
action find_reverse
entity association football player
relation occupation
type social group
action filter_type
action find_reverse
entity association football player
relation occupation
type city or town in Armenia
[{'concept': 'social group'}, 'occupation', 'association football player'] [{'concept': 'city or town in Armenia'}, 'occupation', 'association football player'] [{'concept': 'social group'}, 'occupation', 'association football player'] [{'concept': 'city or town in Armenia'}, 'occupation', 'association football player']
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:social_group ) ( ontology:city_or_town_in_Armenia ) } }
[]
social group city or town in Armenia
SYSTEM
2
Q3752378 Q2817360
(c(Q874405),P106,Q937857) (c(Q20724701),P106,Q937857) (c(Q874405),P106,Q937857) (c(Q20724701),P106,Q937857)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P106
type Q874405
action filter_type
action find_reverse
entity Q937857
relation P106
type Q20724701
[ANSWER]
[{'concept': 'Q874405'}, 'P106', 'Q937857'] [{'concept': 'Q20724701'}, 'P106', 'Q937857'] [{'concept': 'Q874405'}, 'P106', 'Q937857'] [{'concept': 'Q20724701'}, 'P106', 'Q937857']
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:Q874405 ) ( ontology:Q20724701 ) } }
Fratelli Céspedes Masis Voskanyan
2
action count
action union
action filter_type
action find_reverse
entity association football player
relation occupation
type social group
action filter_type
action find_reverse
entity association football player
relation occupation
type city or town in Armenia
[{'concept': 'social group'}, 'occupation', 'association football player'] [{'concept': 'city or town in Armenia'}, 'occupation', 'association football player'] [{'concept': 'social group'}, 'occupation', 'association football player'] [{'concept': 'city or town in Armenia'}, 'occupation', 'association football player']
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:social_group ) ( ontology:city_or_town_in_Armenia ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q191479
P417
Q502895 Q12737077
USER
Which people are the names of the patron saint of more number of occupations than Tadeusz Kościuszko ?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q191479
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:P417 ?o . ?o rdf:type ontology:Q502895 . ?h rdf:type ontology:Q12737077 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Q191479 property:P417 ?w . ?w rdf:type ontology:Q502895 } } . FILTER ( ?n > ?c ) }
Tadeusz Kościuszko
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Tadeusz Kościuszko
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:patron_saint ?o . ?o rdf:type ontology:common_name . ?h rdf:type ontology:occupation } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Tadeusz_Kościuszko property:patron_saint ?w . ?w rdf:type ontology:common_name } } . FILTER ( ?n > ?c ) }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q191479
relation P417
type Q502895
[ANSWERS] are the names of the patron saint of more number of occupations than Tadeusz Kościuszko
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:P417 ?o . ?o rdf:type ontology:Q502895 . ?h rdf:type ontology:Q12737077 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Q191479 property:P417 ?w . ?w rdf:type ontology:Q502895 } } . FILTER ( ?n > ?c ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas, Albertus Magnus and Isidore of Seville are the names of the patron saint of more number of occupations than Tadeusz Kościuszko
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Tadeusz Kościuszko
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:patron_saint ?o . ?o rdf:type ontology:common_name . ?h rdf:type ontology:occupation } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Tadeusz_Kościuszko property:patron_saint ?w . ?w rdf:type ontology:common_name } } . FILTER ( ?n > ?c ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q469978
P417
Q502895 Q12737077
USER
And also tell me about Devota?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q469978
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:P417 ?b . ?b rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 } GROUP BY ?b } . FILTER ( ?x > ?m ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Q469978 property:P417 ?k . ?k rdf:type ontology:Q502895 } } }
Devota
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Devota
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:patron_saint ?b . ?b rdf:type ontology:common_name . ?c rdf:type ontology:occupation } GROUP BY ?b } . FILTER ( ?x > ?m ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Devota property:patron_saint ?k . ?k rdf:type ontology:common_name } } }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q469978
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:P417 ?b . ?b rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 } GROUP BY ?b } . FILTER ( ?x > ?m ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Q469978 property:P417 ?k . ?k rdf:type ontology:Q502895 } } }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Devota
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:patron_saint ?b . ?b rdf:type ontology:common_name . ?c rdf:type ontology:occupation } GROUP BY ?b } . FILTER ( ?x > ?m ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Devota property:patron_saint ?k . ?k rdf:type ontology:common_name } } }
[]