Simple Question (Direct)
Simple Question
Q5945420
P106
Q12737077
USER
Which occupation has José Santiago Melo Mendoza as his/her 's career ?
(Q5945420,P106,c(Q12737077))
action filter_type
action find
entity Q5945420
relation P106
type Q12737077
['Q5945420', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q5945420 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
José Santiago Melo Mendoza
action filter_type
action find
entity José Santiago Melo Mendoza
relation occupation
type occupation
['José Santiago Melo Mendoza', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:José_Santiago_Melo_Mendoza property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q5945420,P106,c(Q12737077))
action filter_type
action find
entity Q5945420
relation P106
type Q12737077
The [ANSWER] has José Santiago Melo Mendoza as his/her 's career
['Q5945420', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q5945420 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
politician
The politician has José Santiago Melo Mendoza as his/her 's career
politician
action filter_type
action find
entity José Santiago Melo Mendoza
relation occupation
type occupation
['José Santiago Melo Mendoza', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:José_Santiago_Melo_Mendoza property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5945420
P102
Q7210356
USER
Which political organization is José Santiago Melo Mendoza a member of ?
(Q5945420,P102,c(Q7210356))
action filter_type
action find
entity Q5945420
relation P102
type Q7210356
['Q5945420', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q5945420 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
José Santiago Melo Mendoza
action filter_type
action find
entity José Santiago Melo Mendoza
relation member of political party
type political organization
['José Santiago Melo Mendoza', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:José_Santiago_Melo_Mendoza property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
political organization
Q639673
SYSTEM
Conservative Party
Q639673
(Q5945420,P102,c(Q7210356))
action filter_type
action find
entity Q5945420
relation P102
type Q7210356
[ANSWER] is José Santiago Melo Mendoza a member of
['Q5945420', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q5945420 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Conservative Party
Conservative Party is José Santiago Melo Mendoza a member of
Conservative Party
action filter_type
action find
entity José Santiago Melo Mendoza
relation member of political party
type political organization
['José Santiago Melo Mendoza', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:José_Santiago_Melo_Mendoza property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5750509 Q5945420
P27
Q15617994
USER
Which administrative territories are José Santiago Melo Mendoza or Carlos González an inhabitant of ?
OR((Q5945420,P27,c(Q15617994)), (Q5750509,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5945420
relation P27
action find
entity Q5750509
relation P27
type Q15617994
{'OR': [['Q5945420', 'P27', {'concept': 'Q15617994'}], ['Q5750509', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q5945420 property:P27 ?v } UNION { resource:Q5750509 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Carlos González José Santiago Melo Mendoza
action filter_type
action union
action find
entity José Santiago Melo Mendoza
relation country of citizenship
action find
entity Carlos González
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['José Santiago Melo Mendoza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Carlos González', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:José_Santiago_Melo_Mendoza property:country_of_citizenship ?v } UNION { resource:Carlos_González property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q298 Q717
SYSTEM
Chile, Venezuela
Q298 Q717
OR((Q5945420,P27,c(Q15617994)), (Q5750509,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5945420
relation P27
action find
entity Q5750509
relation P27
type Q15617994
[ANSWERS] are José Santiago Melo Mendoza or Carlos González an inhabitant of
{'OR': [['Q5945420', 'P27', {'concept': 'Q15617994'}], ['Q5750509', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q5945420 property:P27 ?v } UNION { resource:Q5750509 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Chile Venezuela
Chile and Venezuela are José Santiago Melo Mendoza or Carlos González an inhabitant of
Chile Venezuela
action filter_type
action union
action find
entity José Santiago Melo Mendoza
relation country of citizenship
action find
entity Carlos González
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['José Santiago Melo Mendoza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Carlos González', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:José_Santiago_Melo_Mendoza property:country_of_citizenship ?v } UNION { resource:Carlos_González property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories are known to have diplomatic connections with atmost 45 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 45
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?i ) WHERE { ?s property:P530 ?o . ?s rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?i <= 45 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 45
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?i ) WHERE { ?s property:diplomatic_relation ?o . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?i <= 45 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
158
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 45
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?i ) WHERE { ?s property:P530 ?o . ?s rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?i <= 45 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
158
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 45
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?i ) WHERE { ?s property:diplomatic_relation ?o . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?i <= 45 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q639673
P21 P102
Q502895
USER
Which people are the members of Conservative Party and have the gender as male ?
AND((c(Q502895),P102,Q639673), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q639673
relation P102
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q639673'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P21 resource:Q6581097 . ?n property:P102 resource:Q639673 }
male Conservative Party
action filter_type
action intersection
action find_reverse
entity Conservative Party
relation member of political party
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Conservative Party'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:gender resource:male . ?n property:member_of_political_party resource:Conservative_Party }
[]
common name
Q5944825 Q5945420 Q3186337 Q6161150 Q5937377 Q6068899 Q5983751 Q5947249 Q9024962 Q5913464
SYSTEM
Some of them are José Rafael Larraín Moxó, José Santiago Melo Mendoza, José Ignacio Zenteno, Vicente González Palma, José Agustín Seco Santa Cruz, Pedro García de la Huerta Saravia, Luis Larraín Prieto, Juan Antonio Coloma Mellado, Luis Cabrera Ferrada, Ignacio Ortúzar Castillo
Q5665172 Q5660747 Q9028023 Q5934528 Q6066720 Q5831046 Q6109913 Q5750282 Q5993395 Q6108329 Q5998035 Q6161150 Q5949318 Q6100061 Q5945995 Q5735092 Q1329 Q5938543 Q5945932 Q5672178 Q9066424 Q6068899 Q5956949 Q6108460 Q5993970 Q5938859 Q6097789 Q6042293 Q21694215 Q5694044 Q3186337 Q5889861 Q5873392 Q5941591 Q5791890 Q8962311 Q5945420 Q5945423 Q5992864 Q5850732 Q5937920 Q6014186 Q6161033 Q5940696 Q6097358 Q5937377 Q5940807 Q5944825 Q26111537 Q5560963 Q5750626 Q23973139 Q2887855 Q6173425 Q5983521 Q6292991 Q5698559 Q5942638 Q14180555 Q6041860 Q878840 Q5688087 Q5913464 Q5487924 Q5942905 Q5402752 Q5734591 Q12015 Q6293343 Q6099976 Q5940511 Q9065843 Q20950311 Q5945980 Q14180963 Q5789903 Q6454077 Q6097536 Q5955630 Q6795692 Q6107993 Q5947249 Q2894796 Q5859968 Q5940336 Q15410706 Q5866098 Q5984160 Q6123830 Q5945414 Q5726127 Q5483159 Q5950229 Q5392925 Q6752656 Q5850600 Q5041729 Q11073098 Q7282376 Q6069679 Q5928075 Q5888802 Q1328 Q24282748 Q6099713 Q5572661 Q5665582 Q16528737 Q4985483 Q5866727 Q5866724 Q5858307 Q6165722 Q5865163 Q5922674 Q946718 Q4797938 Q5752076 Q5752179 Q6099649 Q6301368 Q5984410 Q6100005 Q5940541 Q5992225 Q10922738 Q5939829 Q5932335 Q6013963 Q5992188 Q5983751 Q5867497 Q5951646 Q5946015 Q6128492 Q6006676 Q6111578 Q5848797 Q5672249 Q5949244 Q5867257 Q5935845 Q9024962 Q2919483 Q5946402 Q1330 Q5865597 Q5646057 Q5868291 Q6002733
AND((c(Q502895),P102,Q639673), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q639673
relation P102
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are the members of Conservative Party and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q639673'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P21 resource:Q6581097 . ?n property:P102 resource:Q639673 }
Alejandro Lira Lira Agustín López de Alcázar Manuel Ossa Covarrubias Jorge Astaburuaga Vergara José Patricio Larraín Gandarillas Emilio Claro Cruz Roberto Peragallo Silva Carlos Estévez Gazmuri Manuel José de Hurtado Ricardo Matte Pérez Mariano de Ariztía Astaburuaga Vicente González Palma Juan Esteban Rodríguez Segura Ramón Subercaseaux Mercado José Vicente Arlegui Rodríguez Buenaventura Solar Manuel Bulnes José Bisquert de la Barrera José Valenzuela Laguillos Ambrosio Andonaegui Blanco Ramón Lecaros Alcalde Pedro García de la Huerta Saravia Justo Donoso Vivanco Ricardo Salas Edwards Manuel Palacios Silva José Casimiro Mena Alviz Rafael Ovalle Bezanilla Nicolás Jaramillo Niño Francisco Concha Castillo José Ángel Ortúzar Formas José Ignacio Zenteno Gustavo Ross Gabriel José Tocornal Jiménez José Luis Pereira Arguibel Cristóbal Valdés Ugalde Francisco Bulnes Sanfuentes José Santiago Melo Mendoza José Santiago Montt Irarrázaval Manuel Eyzaguirre Portales Eulogio Altamirano Aracena José Antonio Lecaros Alcalde Miguel Cruchaga Tocornal Vicente Bascuñán Vargas José Javier Bustamante Bustamante Rafael Gatica Soiza José Agustín Seco Santa Cruz José Joaquín Valdés Valdés José Rafael Larraín Moxó Julio Subercaseaux Rafael Urrejola Mulgrew Carlos Irarrázaval Larraín Francisco Huneeus Gana Robert Simpson Simpson Ángel Prieto Vial Luis García Huidobro Aldunate José Manuel Eguiguren Urrejola Antonio Gundián Padilla José María Bascuñán David Marzán Nicanor Letelier Cruz Francisco Ruiz-Tagle Blas González Ortúzar Ignacio Ortúzar Castillo José Tocornal Velasco José María Fernández Moraga Manuel Infante Quezada Bruno Sergio Pizarro Espoz Alfredo Silva Carvallo José María Urrutia Manzano Ramón Rengifo Cárdenas José Ignacio García Sierpe Rafael Moreno Echavarría Francisco Javier Correa Errázuriz José Vergara Galeas Manuel Gregorio García Encina Cosme Campillo Ibáñez José Camilo del Solar Rafael Luis Gumucio Vergara Julio Pereira Larraín Maximiano Errázuriz Ricardo Ariztía Urmeneta Juan Antonio Coloma Mellado Carlos Formas Urízar Fernando Márquez de la Plata Encalada José H. Álamos de la Cerda Pedro Pablo Caro Francisco Javier Barros Tapia Luis Pereira Íñiguez Segundo Gana López José Santiago Aldunate Benjamín Muñoz Gamero Francisco Astaburuaga Cienfuegos Juan José Echenique Bascuñán Alejo Lira Infante Manuel José Yrarrázaval Larraín Eugenio Torres de Velasco Carlos Aldunate Solar Jorge Baraona Puelma Rafael de la Barra López Pedro Ovalle y Landa Javier Ovalle Errázuriz Guillermo Pereira Íñiguez Manuel Montt Carlos Risopatrón Escudero Ramón Herrera Lira José Manuel Novoa Sanhueza Alejandro Vial Alfredo Prieto Zenteno Buenaventura Cousiño Jorquera Francisco Massenlli Guarda Francisco Marín Recabarren José Miguel Irarrázaval Alcalde Víctor Ríos Ruiz Francisco Aspillaga Velasco Ismael Pereira Íñiguez Manuel Miquel Rodríguez Francisco de Paula Donoso Vergara Carlos Vial Espantoso Carlos de Castro Ortúzar Ramón García Huidobro Juan de la Cruz Donoso Luis Undurraga García-Huidobro Ramón Rozas Garfias José Ignacio Larraín Landa Manuel Antonio Tocornal Gustavo Loyola Vásquez José Francisco Urrejola Menchaca Joaquín Prieto Concha Miguel Barros Morán Manuel Antonio Garretón Walker Luis Larraín Prieto Francisco Solano Concha Cienfuegos Juan Nicolás Álvarez Borcosqui José Vicente Orrego Hurtado Silvestre Ochagavía Errázuriz Matías Ovalle Errázuriz Romualdo Silva Cortés Estanislao Portales Larraín Ambrosio de la Fuente Juan Egaña Fabres Francisco Rivas Vicuña Jorge Pérez Gazitúa Luis Cabrera Ferrada Manuel José Irarrázaval Larraín José de la Barra López José Joaquín Prieto Francisco Eguiguren Urrejola Manuel Alcalde Velasco Francisco Ángel Ramírez Martín Larraín Salas
José Rafael Larraín Moxó, José Santiago Melo Mendoza, José Ignacio Zenteno, Vicente González Palma, José Agustín Seco Santa Cruz, Pedro García de la Huerta Saravia, Luis Larraín Prieto, Juan Antonio Coloma Mellado, Luis Cabrera Ferrada and Ignacio Ortúzar Castillo are the members of Conservative Party and have the gender as male
José Rafael Larraín Moxó José Santiago Melo Mendoza José Ignacio Zenteno Vicente González Palma José Agustín Seco Santa Cruz Pedro García de la Huerta Saravia Luis Larraín Prieto Juan Antonio Coloma Mellado Luis Cabrera Ferrada Ignacio Ortúzar Castillo
action filter_type
action intersection
action find_reverse
entity Conservative Party
relation member of political party
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Conservative Party'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:gender resource:male . ?n property:member_of_political_party resource:Conservative_Party }
[]