Simple Question (Direct)
Simple Question
Q15724700
P86
Q502895
USER
Who wrote the music for Premarutu Asilare ?
(Q15724700,P86,c(Q502895))
action filter_type
action find
entity Q15724700
relation P86
type Q502895
['Q15724700', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q15724700 property:P86 ?t }
Premarutu Asilare
action filter_type
action find
entity Premarutu Asilare
relation composer
type common name
['Premarutu Asilare', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Premarutu_Asilare property:composer ?t }
[]
common name
Q15725397
SYSTEM
Swarup Nayak
Q15725397
(Q15724700,P86,c(Q502895))
action filter_type
action find
entity Q15724700
relation P86
type Q502895
[ANSWER] wrote the music for Premarutu Asilare
['Q15724700', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q15724700 property:P86 ?t }
Swarup Nayak
Swarup Nayak wrote the music for Premarutu Asilare
Swarup Nayak
action filter_type
action find
entity Premarutu Asilare
relation composer
type common name
['Premarutu Asilare', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Premarutu_Asilare property:composer ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15724700
P161
Q502895
USER
Which people starred in that work of art ?
(Q15725397,P161,c(Q502895))
action filter_type
action find
entity Q15724700
relation P161
type Q502895
['Q15725397', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q15724700 property:P161 ?r . ?r rdf:type ontology:Q502895 }
Premarutu Asilare
action filter_type
action find
entity Premarutu Asilare
relation cast member
type common name
['Swarup Nayak', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Premarutu_Asilare property:cast_member ?r . ?r rdf:type ontology:common_name }
[]
common name
Q4779123 Q4790714 Q7508087
SYSTEM
Aparajita Mohanty, Arindam Roy, Siddhanta Mahapatra
Q4779123 Q4790714 Q15724317 Q7508087 Q21642840 Q4777685
(Q15725397,P161,c(Q502895))
action filter_type
action find
entity Q15724700
relation P161
type Q502895
[ANSWERS] starred in that work of art
['Q15725397', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q15724700 property:P161 ?r . ?r rdf:type ontology:Q502895 }
Aparajita Mohanty Arindam Roy Debu Bose Siddhanta Mahapatra Namrata Thapa Anu Choudhury
Aparajita Mohanty, Arindam Roy and Siddhanta Mahapatra starred in that work of art
Aparajita Mohanty Arindam Roy Siddhanta Mahapatra
action filter_type
action find
entity Premarutu Asilare
relation cast member
type common name
['Swarup Nayak', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Premarutu_Asilare property:cast_member ?r . ?r rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5221564 Q15724700
P495
Q15617994
USER
Which administrative territories are the countries of origin of Premarutu Asilare or Dapat Ka Bang Mahalin? ?
OR((Q15724700,P495,c(Q15617994)), (Q5221564,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q15724700
relation P495
action find
entity Q5221564
relation P495
type Q15617994
{'OR': [['Q15724700', 'P495', {'concept': 'Q15617994'}], ['Q5221564', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q15724700 property:P495 ?t } UNION { resource:Q5221564 property:P495 ?t } } . ?t rdf:type ontology:Q15617994 }
Dapat Ka Bang Mahalin? Premarutu Asilare
action filter_type
action union
action find
entity Premarutu Asilare
relation country of origin
action find
entity Dapat Ka Bang Mahalin?
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Premarutu Asilare', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Dapat Ka Bang Mahalin?', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Premarutu_Asilare property:country_of_origin ?t } UNION { resource:Dapat_Ka_Bang_Mahalin? property:country_of_origin ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q928 Q668
SYSTEM
Philippines, India
Q928 Q668
OR((Q15724700,P495,c(Q15617994)), (Q5221564,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q15724700
relation P495
action find
entity Q5221564
relation P495
type Q15617994
[ANSWERS] are the countries of origin of Premarutu Asilare or Dapat Ka Bang Mahalin
{'OR': [['Q15724700', 'P495', {'concept': 'Q15617994'}], ['Q5221564', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q15724700 property:P495 ?t } UNION { resource:Q5221564 property:P495 ?t } } . ?t rdf:type ontology:Q15617994 }
Philippines India
Philippines and India are the countries of origin of Premarutu Asilare or Dapat Ka Bang Mahalin
Philippines India
action filter_type
action union
action find
entity Premarutu Asilare
relation country of origin
action find
entity Dapat Ka Bang Mahalin?
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Premarutu Asilare', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Dapat Ka Bang Mahalin?', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Premarutu_Asilare property:country_of_origin ?t } UNION { resource:Dapat_Ka_Bang_Mahalin? property:country_of_origin ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q41
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with less number of administrative territories than Greece ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q41
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?t ) WHERE { ?w property:P530 ?i . ?w rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?t < ?p ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Q41 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } }
Greece
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Greece
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?t ) WHERE { ?w property:diplomatic_relation ?i . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?t < ?p ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Greece property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q96
SYSTEM
Netherlands, Poland, Mexico
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q265 Q712 Q717 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q924 Q36 Q34 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q221 Q96 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q77 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q41
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with less number of administrative territories than Greece
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?t ) WHERE { ?w property:P530 ?i . ?w rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?t < ?p ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Q41 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Uzbekistan Fiji Venezuela Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Tanzania Poland Sweden 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 Hungary Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Mexico Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia 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 Uruguay United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
Netherlands, Poland and Mexico have diplomatic relations with less number of administrative territories than Greece
Netherlands Poland Mexico
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Greece
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?t ) WHERE { ?w property:diplomatic_relation ?i . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?t < ?p ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Greece property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q55488
USER
How many railway stations are present in that administrative territory ?
(c(Q55488),P17,Q96)
[{'concept': 'Q55488'}, 'P17', 'Q96']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q6256 resource:Q2294975 . ?z rdf:type ontology:Q55488 }
[{'concept': 'railway station'}, 'country', 'Mexico']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:country resource:Mexico . ?z rdf:type ontology:railway_station }
[]
railway station
Quantitative|Count|Single entity type|Clarification
Q36
SYSTEM
Did you mean Poland ?
(c(Q55488),P17,Q55) (c(Q55488),P17,Q36) (c(Q55488),P17,Q96)
[ANSWER]
[{'concept': 'Q55488'}, 'P17', 'Q55'] [{'concept': 'Q55488'}, 'P17', 'Q36'] [{'concept': 'Q55488'}, 'P17', 'Q96']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q6256 resource:Q2294975 . ?z rdf:type ontology:Q55488 }
Did you mean Poland ?
Poland
[{'concept': 'railway station'}, 'country', 'Netherlands'] [{'concept': 'railway station'}, 'country', 'Poland'] [{'concept': 'railway station'}, 'country', 'Mexico']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:country resource:Mexico . ?z rdf:type ontology:railway_station }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Mexico. Could you tell me the answer for that?
(c(Q55488),P17,Q96)
Q96
[{'concept': 'Q55488'}, 'P17', 'Q96']
[{'concept': 'railway station'}, 'country', 'Mexico']
[]
SYSTEM
177
Q6824550 Q3356980 Q3356989 Q3356988 Q2541914 Q5841189 Q8963097 Q522857 Q4204314 Q3356984 Q2885482 Q3356943 Q3356947 Q5531691 Q8191806 Q3431052 Q5691609 Q5400505 Q2541953 Q3356960 Q3356965 Q3431067 Q3357024 Q3357029 Q3356912 Q6824782 Q3356908 Q3357008 Q9035123 Q11681253 Q3356920 Q7335651 Q3357320 Q6824756 Q3317707 Q6882381 Q3357042 Q6824767 Q6824764 Q6824762 Q6824768 Q5252894 Q4705851 Q6824521 Q6824700 Q6824703 Q2744158 Q388460 Q6824508 Q6824506 Q3431185 Q6824726 Q6824514 Q3431176 Q6824735 Q6824730 Q6824733 Q5421595 Q6824560 Q6824568 Q6824577 Q6824573 Q6824578 Q6824549 Q6824546 Q6824544 Q3431142 Q3377006 Q6824558 Q6824555 Q6824553 Q3429492 Q3429496 Q5442345 Q9019049 Q5338357 Q3429486 Q6824698 Q6824691 Q3431125 Q4832997 Q5944586 Q3431375 Q2837042 Q6824582 Q6824588 Q4778485 Q6824670 Q6824672 Q6824678 Q6824679 Q3431319 Q6824591 Q6824590 Q6824665 Q11704892 Q6119480 Q3356972 Q6824654 Q6824650 Q6824651 Q9074085 Q6824647 Q6824646 Q3301776 Q3431323 Q5256668 Q6824638 Q5908309 Q3357000 Q6824627 Q3356924 Q6824476 Q6824477 Q6824471 Q8344273 Q6824610 Q6824614 Q619422 Q1147620 Q6824469 Q6824601 Q6824608 Q5647490 Q7894229 Q3356870 Q3352997 Q3357035 Q6824498 Q6824496 Q6824492 Q8046142 Q6824487 Q6824481 Q5838201 Q601519 Q3356929 Q5402969 Q7042318 Q599734 Q6824494 Q3431073 Q9092402 Q2936246 Q430129 Q6824625 Q6824623 Q6824552 Q7413415 Q3287760 Q3356888 Q5367234 Q3356897 Q3356904 Q6824695 Q5577009 Q6824734 Q2836136 Q3366731 Q4722092 Q6824612 Q6824617 Q3356938 Q7450223 Q3357017 Q3356873 Q9058930 Q6528782 Q7139636 Q5810513 Q740243 Q2630441 Q6824517 Q3356995 Q3356901 Q7521431 Q3356881
(c(Q55488),P17,Q96)
[ANSWER]
[{'concept': 'Q55488'}, 'P17', 'Q96']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q6256 resource:Q2294975 . ?z rdf:type ontology:Q55488 }
Metro Copilco Metro Merced Metro Zaragoza Metro Gómez Farías Metro Hidalgo Metro San Pedro de los Pinos Fundadores Metro Oceanía Metro Iztapalapa Metro San Lázaro Metro Barranca del Muerto Metro Sevilla Metro Balderas General Anaya Metro Agrícola Oriental Metro Indios Verdes Metro San Juan de Letrán Santiago Tapia Metro Bellas Artes Metro Portales Metro Villa de Cortés Metro Mixiuhca Metro Viaducto Metro Cuitláhuac Metro Cuauhtémoc Metro Zapata Metro Cuatro Caminos Metro Pino Suárez Metro Morelos Metro Ecatepec Metro Zócalo Metro Viveros Metro Tasqueña Metro UAM-I Metro Chabacano Mitras Metro Revolución Metro Velódromo Metro Universidad Metro Vallejo Metro Villa de Aragón Del Golfo Alameda Metro Canal del Norte Metro San Joaquín Metro Santa Anita Metro Tacubaya Metro Observatorio Metro Bosque de Aragón Metro Bondojito Metro Escuadrón 201 Metro Talismán Metro Camarones Metro Ciudad Azteca Metro Tláhuac Metro Tepalcates Metro Terminal Aérea Exposición Metro Eduardo Molina Metro Eugenia Metro Guelatao Metro Fray Servando Metro Guerrero Metro Consulado Metro Constitución de 1917 Metro Ciudad Deportiva Metro Buenavista Metro Jamaica Metro División del Norte Metro Deportivo Oceanía Metro Coyuya Metro La Raza Metro El Rosario Felix U. Gómez Metro La Viga Edison Metro Etiopía Metro San Antonio Metro Romero Rubio Metro Iztacalco Aztlán Metro Constituyentes Metro Politécnico Metro Doctores Metro Hangares Metro Hospital General Anáhuac Metro Plaza Aragón Metro Polanco Metro Potrero Puebla Metro Deportivo 18 de Marzo Metro Instituto del Petróleo Metro Impulsora Metro Patriotismo Unidad Modelo (Monterrey Metro) San Nicolás Metro San Cosme Metro Olímpica Metro Norte 45 Metro Obrera Metro Santa Marta Metro Niños Héroes Metro Nezahualcóyotl Metro Insurgentes Metro Tlatelolco Metro Ermita Metro Múzquiz Hospital Metro Panteones Metro Mixcoac Metro Xola Metro Apatlaco Metro Aquiles Serdán Metro Aculco Metro Cerro de la Estrella Metro Lagunilla Metro Lindavista Metro Ferrería Metro Garibaldi Metro Acatitla Metro Juárez Metro La Paz Zaragoza Universidad Metro Isabel la Católica Metro Pantitlán Metro Chapultepec Metro Azcapotzalco Metro Autobuses del Norte Metro Auditorio Y Griega Metro Atlalilco Metro Aragón Penitenciaría Metro Ricardo Flores Magón Metro Popotla Metro Tepito Niños Heroes Padre Mier Metro Axomulco Metro Chilpancingo Metro Valle Gómez Metro Candelaria Cuauhtémoc Metro Misterios Metro Martín Carrera Metro Del Paso San Bernabé Metro Allende Metro General Anaya Eloy Cavazos Metro San Antonio Abad Metro Nativitas Metro Río de los Remedios Talleres Metro Tezozómoc Metro La Villa-Basílica Metro Coyoacán Alfonso Reyes Metro Los Reyes Metro Lázaro Cárdenas Metro Juanacatlán Sendero Metro Moctezuma Metro Colegio Militar Metro Peñón Viejo Lerdo de Tejada Parque Fundidora Metro Centro Médico Metro Salto del Agua Metro Boulevard Puerto Aéreo Metro Canal de San Juan Metro Normal Metro Tacuba Simón Bolívar Metro Balbuena
177
[{'concept': 'railway station'}, 'country', 'Mexico']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:country resource:Mexico . ?z rdf:type ontology:railway_station }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q55 Q324516
P710
Q350604
USER
How many armed conflicts were Netherlands or Choctaw a participant of ?
(c(Q350604),P710,Q55) (c(Q350604),P710,Q324516)
action count
action union
action filter_type
action find_reverse
entity Q55
relation P710
type Q350604
action filter_type
action find_reverse
entity Q324516
relation P710
type Q350604
[{'concept': 'Q350604'}, 'P710', 'Q55'] [{'concept': 'Q350604'}, 'P710', 'Q324516']
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { ?x property:P710 resource:Q55 . ?x rdf:type ontology:Q350604 } UNION { ?x property:P710 resource:Q324516 . ?x rdf:type ontology:Q350604 } }
Netherlands Choctaw
action count
action union
action filter_type
action find_reverse
entity Netherlands
relation participant
type armed conflict
action filter_type
action find_reverse
entity Choctaw
relation participant
type armed conflict
[{'concept': 'armed conflict'}, 'participant', 'Netherlands'] [{'concept': 'armed conflict'}, 'participant', 'Choctaw']
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { ?x property:participant resource:Netherlands . ?x rdf:type ontology:armed_conflict } UNION { ?x property:participant resource:Choctaw . ?x rdf:type ontology:armed_conflict } }
[]
armed conflict
SYSTEM
2
Q26013 Q1186260
(c(Q350604),P710,Q55) (c(Q350604),P710,Q324516)
action count
action union
action filter_type
action find_reverse
entity Q55
relation P710
type Q350604
action filter_type
action find_reverse
entity Q324516
relation P710
type Q350604
[ANSWER]
[{'concept': 'Q350604'}, 'P710', 'Q55'] [{'concept': 'Q350604'}, 'P710', 'Q324516']
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { ?x property:P710 resource:Q55 . ?x rdf:type ontology:Q350604 } UNION { ?x property:P710 resource:Q324516 . ?x rdf:type ontology:Q350604 } }
War of 1812 Creek War
2
action count
action union
action filter_type
action find_reverse
entity Netherlands
relation participant
type armed conflict
action filter_type
action find_reverse
entity Choctaw
relation participant
type armed conflict
[{'concept': 'armed conflict'}, 'participant', 'Netherlands'] [{'concept': 'armed conflict'}, 'participant', 'Choctaw']
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { ?x property:participant resource:Netherlands . ?x rdf:type ontology:armed_conflict } UNION { ?x property:participant resource:Choctaw . ?x rdf:type ontology:armed_conflict } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q55
P463
Q180516 Q56061
USER
How many rooms and administrative territories were Netherlands a member of ?
(Q55,P463,c(Q180516)) (Q55,P463,c(Q56061))
action count
action union
action filter_type
action find
entity Q55
relation P463
type Q180516
action filter_type
action find
entity Q55
relation P463
type Q56061
['Q55', 'P463', {'concept': 'Q180516'}] ['Q55', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { resource:Q55 property:P463 ?q . ?q rdf:type ontology:Q56061 } UNION { resource:Q55 property:P463 ?q . ?q rdf:type ontology:Q180516 } }
Netherlands
action count
action union
action filter_type
action find
entity Netherlands
relation member of
type room
action filter_type
action find
entity Netherlands
relation member of
type administrative territorial entity
['Netherlands', 'member of', {'concept': 'room'}] ['Netherlands', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { resource:Netherlands property:member_of ?q . ?q rdf:type ontology:administrative_territorial_entity } UNION { resource:Netherlands property:member_of ?q . ?q rdf:type ontology:room } }
[]
room administrative territorial entity
SYSTEM
1 rooms and 1 administrative territories
Q141720 Q458
(Q55,P463,c(Q180516)) (Q55,P463,c(Q56061))
action count
action union
action filter_type
action find
entity Q55
relation P463
type Q180516
action filter_type
action find
entity Q55
relation P463
type Q56061
[ANSWER]
['Q55', 'P463', {'concept': 'Q180516'}] ['Q55', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { resource:Q55 property:P463 ?q . ?q rdf:type ontology:Q56061 } UNION { resource:Q55 property:P463 ?q . ?q rdf:type ontology:Q180516 } }
European Air Transport Command European Union
1 rooms and 1 administrative territories
action count
action union
action filter_type
action find
entity Netherlands
relation member of
type room
action filter_type
action find
entity Netherlands
relation member of
type administrative territorial entity
['Netherlands', 'member of', {'concept': 'room'}] ['Netherlands', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { resource:Netherlands property:member_of ?q . ?q rdf:type ontology:administrative_territorial_entity } UNION { resource:Netherlands property:member_of ?q . ?q rdf:type ontology:room } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q515 Q56061 Q15617994
USER
Which administrative territories have max number of cities or administrative territories as their administrative centre ?
(c(Q15617994),P36,c(Q515)|c(Q56061))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q515
action find_tuple_counts
relation P36
type Q15617994
type Q56061
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q515'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?l WHERE { VALUES ( ?b ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?c rdf:type ?b } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) ?o WHERE { { ?s rdf:type ontology:Q515 . ?o rdf:type ontology:Q15617994 . ?o property:P36 ?s } UNION { ?o rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q56061 . ?o property:P36 ?s } } GROUP BY ?o } . FILTER ( ?p = ?y ) }
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'city'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?l WHERE { VALUES ( ?b ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?c rdf:type ?b } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) ?o WHERE { { ?s rdf:type ontology:city . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:capital ?s } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:administrative_territorial_entity . ?o property:capital ?s } } GROUP BY ?o } . FILTER ( ?p = ?y ) }
[]
city administrative territorial entity designation for an administrative territorial entity
Q17 Q258 Q252
SYSTEM
Japan, South Africa, Indonesia
Q252 Q258 Q12536 Q17 Q160307
(c(Q15617994),P36,c(Q515)|c(Q56061))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q515
action find_tuple_counts
relation P36
type Q15617994
type Q56061
[ANSWERS] have max number of cities or administrative territories as their administrative centre
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q515'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?l WHERE { VALUES ( ?b ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?c rdf:type ?b } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) ?o WHERE { { ?s rdf:type ontology:Q515 . ?o rdf:type ontology:Q15617994 . ?o property:P36 ?s } UNION { ?o rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q56061 . ?o property:P36 ?s } } GROUP BY ?o } . FILTER ( ?p = ?y ) }
Indonesia South Africa Abbasid caliphate Japan Fatimid caliphate
Japan, South Africa and Indonesia have max number of cities or administrative territories as their administrative centre
Japan South Africa Indonesia
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'city'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?l WHERE { VALUES ( ?b ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?c rdf:type ?b } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) ?o WHERE { { ?s rdf:type ontology:city . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:capital ?s } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:administrative_territorial_entity . ?o property:capital ?s } } GROUP BY ?o } . FILTER ( ?p = ?y ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P276
Q16743958
USER
Which genre of painting is situated at India ?
(c(Q16743958),P276,Q668)
action filter_type
action find_reverse
entity Q668
relation P276
type Q16743958
[{'concept': 'Q16743958'}, 'P276', 'Q668']
SELECT DISTINCT ?x WHERE { ?x property:P276 resource:Q668 . ?x rdf:type ontology:Q16743958 }
India
action filter_type
action find_reverse
entity India
relation location
type genre of painting
[{'concept': 'genre of painting'}, 'location', 'India']
SELECT DISTINCT ?x WHERE { ?x property:location resource:India . ?x rdf:type ontology:genre_of_painting }
[]
genre of painting
Q5054966
SYSTEM
Cave paintings in India
Q5054966
(c(Q16743958),P276,Q668)
action filter_type
action find_reverse
entity Q668
relation P276
type Q16743958
[ANSWER] is situated at India
[{'concept': 'Q16743958'}, 'P276', 'Q668']
SELECT DISTINCT ?x WHERE { ?x property:P276 resource:Q668 . ?x rdf:type ontology:Q16743958 }
Cave paintings in India
Cave paintings in India is situated at India
Cave paintings in India
action filter_type
action find_reverse
entity India
relation location
type genre of painting
[{'concept': 'genre of painting'}, 'location', 'India']
SELECT DISTINCT ?x WHERE { ?x property:location resource:India . ?x rdf:type ontology:genre_of_painting }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q668
P1376
Q56061
USER
Which administrative territory is the county seat for that administrative territory ?
(c(Q56061),P1376,Q5054966)
action filter_type
action find_reverse
entity Q668
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q5054966']
SELECT DISTINCT ?r WHERE { ?r property:P1376 resource:Q668 . ?r rdf:type ontology:Q56061 }
India
action filter_type
action find_reverse
entity India
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Cave paintings in India']
SELECT DISTINCT ?r WHERE { ?r property:capital_of resource:India . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q987
SYSTEM
New Delhi
Q987
(c(Q56061),P1376,Q5054966)
action filter_type
action find_reverse
entity Q668
relation P1376
type Q56061
[ANSWER] is the county seat for that administrative territory
[{'concept': 'Q56061'}, 'P1376', 'Q5054966']
SELECT DISTINCT ?r WHERE { ?r property:P1376 resource:Q668 . ?r rdf:type ontology:Q56061 }
New Delhi
New Delhi is the county seat for that administrative territory
New Delhi
action filter_type
action find_reverse
entity India
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Cave paintings in India']
SELECT DISTINCT ?r WHERE { ?r property:capital_of resource:India . ?r rdf:type ontology:administrative_territorial_entity }
[]