Simple Question (Direct)
Simple Question
Q1074674
P21
Q290
USER
What is the sex of Nicholas V. Riasanovsky ?
(Q1074674,P21,c(Q290))
action filter_type
action find
entity Q1074674
relation P21
type Q290
['Q1074674', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q1074674 property:P21 ?l . ?l rdf:type ontology:Q290 }
Nicholas V. Riasanovsky
action filter_type
action find
entity Nicholas V. Riasanovsky
relation gender
type sex
['Nicholas V. Riasanovsky', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Nicholas_V._Riasanovsky property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1074674,P21,c(Q290))
action filter_type
action find
entity Q1074674
relation P21
type Q290
[ANSWER] . the sex of Nicholas V is
['Q1074674', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q1074674 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
Male . the sex of Nicholas V is
male
action filter_type
action find
entity Nicholas V. Riasanovsky
relation gender
type sex
['Nicholas V. Riasanovsky', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Nicholas_V._Riasanovsky property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1074674
P1412
Q34770
USER
Which language is spoken by Nicholas V. Riasanovsky ?
(Q1074674,P1412,c(Q34770))
action filter_type
action find
entity Q1074674
relation P1412
type Q34770
['Q1074674', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q34770 . resource:Q1074674 property:P1412 ?s }
Nicholas V. Riasanovsky
action filter_type
action find
entity Nicholas V. Riasanovsky
relation languages spoken, written or signed
type language
['Nicholas V. Riasanovsky', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:language . resource:Nicholas_V._Riasanovsky property:languages_spoken,_written_or_signed ?s }
[]
language
Q1860
SYSTEM
English
Q1860
(Q1074674,P1412,c(Q34770))
action filter_type
action find
entity Q1074674
relation P1412
type Q34770
[ANSWER] is spoken by Nicholas V. Riasanovsky
['Q1074674', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q34770 . resource:Q1074674 property:P1412 ?s }
English
English is spoken by Nicholas V. Riasanovsky
English
action filter_type
action find
entity Nicholas V. Riasanovsky
relation languages spoken, written or signed
type language
['Nicholas V. Riasanovsky', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:language . resource:Nicholas_V._Riasanovsky property:languages_spoken,_written_or_signed ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1074674
P19
Q1048835
USER
Which political territory was that person born at ?
(Q1860,P19,c(Q1048835))
action filter_type
action find
entity Q1074674
relation P19
type Q1048835
['Q1860', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q1074674 property:P19 ?l . ?l rdf:type ontology:Q1048835 }
Nicholas V. Riasanovsky
action filter_type
action find
entity Nicholas V. Riasanovsky
relation place of birth
type political territorial entity
['English', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Nicholas_V._Riasanovsky property:place_of_birth ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q42956
SYSTEM
Harbin
Q42956
(Q1860,P19,c(Q1048835))
action filter_type
action find
entity Q1074674
relation P19
type Q1048835
That person was born in [ANSWER]
['Q1860', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q1074674 property:P19 ?l . ?l rdf:type ontology:Q1048835 }
Harbin
That person was born in Harbin
Harbin
action filter_type
action find
entity Nicholas V. Riasanovsky
relation place of birth
type political territorial entity
['English', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Nicholas_V._Riasanovsky property:place_of_birth ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q1048835 Q41176 Q271669
USER
Which political territories do around 28 buildings and landforms belong to ?
(c(Q41176)|c(Q271669),P17,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q271669
value 28
[[{'concept': 'Q41176'}, {'concept': 'Q271669'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) ?r WHERE { VALUES ( ?l ) { ( ontology:Q41176 ) ( ontology:Q271669 ) } . ?u rdf:type ?l } GROUP BY ?r } . FILTER ( ?e = 28 ) }
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type building
action find_reverse_tuple_counts
relation country
type political territorial entity
type landform
value 28
[[{'concept': 'building'}, {'concept': 'landform'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) ?r WHERE { VALUES ( ?l ) { ( ontology:building ) ( ontology:landform ) } . ?u rdf:type ?l } GROUP BY ?r } . FILTER ( ?e = 28 ) }
[]
political territorial entity building landform
Q35 Q40 Q5705
SYSTEM
Denmark, Austria, Catalonia
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q785 Q193619 Q769 Q685 Q699964 Q763 Q13767 Q34617 Q22880 Q9676 Q641138 Q664 Q693551 Q13353 Q766 Q848383 Q5705 Q13726 Q953068 Q5785 Q35 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q778 Q2002138 Q3899 Q35672 Q25228 Q1747689 Q781 Q691 Q757 Q9648 Q231 Q234 Q2991382 Q40 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q41176)|c(Q271669),P17,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q271669
value 28
[ANSWERS] around 28 buildings and landforms belong to
[[{'concept': 'Q41176'}, {'concept': 'Q271669'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) ?r WHERE { VALUES ( ?l ) { ( ontology:Q41176 ) ( ontology:Q271669 ) } . ?u rdf:type ?l } GROUP BY ?r } . FILTER ( ?e = 28 ) }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves New Zealand Landgraviate of Hesse-Darmstadt Montserrat Jamaica Duchy of Rome Catalonia Albay South-West Africa Cayman Islands Denmark Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands The Bahamas Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Ancient Rome Antigua and Barbuda Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Austria Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
Denmark, Austria and Catalonia around 28 buildings and landforms belong to
Denmark Austria Catalonia
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type building
action find_reverse_tuple_counts
relation country
type political territorial entity
type landform
value 28
[[{'concept': 'building'}, {'concept': 'landform'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) ?r WHERE { VALUES ( ?l ) { ( ontology:building ) ( ontology:landform ) } . ?u rdf:type ?l } GROUP BY ?r } . FILTER ( ?e = 28 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q15324 Q553036 Q1048835
USER
Which political territories have their location as atmost 1 bodies of water and natural region of Germanys ?
(c(Q1048835),P706,c(Q15324)|c(Q553036))
action atmost
action union
action find_tuple_counts
relation P706
type Q1048835
type Q15324
action find_tuple_counts
relation P706
type Q1048835
type Q553036
value 1
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q553036'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?k WHERE { { ?k property:P706 ?p . ?k rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15324 } UNION { ?k rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q553036 . ?k property:P706 ?p } } GROUP BY ?k } . FILTER ( ?l <= 1 ) }
action atmost
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type natural region of Germany
value 1
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'natural region of Germany'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?k WHERE { { ?k property:located_on_terrain_feature ?p . ?k rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:body_of_water } UNION { ?k rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:natural_region_of_Germany . ?k property:located_on_terrain_feature ?p } } GROUP BY ?k } . FILTER ( ?l <= 1 ) }
[]
body of water natural region of Germany political territorial entity
Q691 Q769 Q766
SYSTEM
Papua New Guinea, Grenada, Jamaica
Q927498 Q6661154 Q1747689 Q983465 Q943922 Q983461 Q753702 Q950889 Q385923 Q49567 Q52626 Q13353 Q6139 Q847324 Q785 Q847321 Q850989 Q983467 Q743716 Q734805 Q904566 Q555140 Q983463 Q13737 Q493017 Q42314 Q950940 Q669078 Q851224 Q898856 Q950951 Q843868 Q945653 Q37362 Q715970 Q595424 Q168856 Q5785 Q3405693 Q7198529 Q832991 Q13751 Q13752 Q975679 Q601112 Q984496 Q743741 Q988714 Q25228 Q596885 Q941533 Q783498 Q692920 Q850939 Q988702 Q2451327 Q925773 Q851011 Q1823 Q13844 Q611123 Q233337 Q202023 Q987394 Q691 Q899884 Q837121 Q950901 Q837125 Q847317 Q983633 Q491786 Q983631 Q3724 Q983635 Q8583 Q652988 Q832967 Q185409 Q769 Q170213 Q766 Q9676 Q984485 Q168159 Q983625 Q983628 Q8593 Q656449 Q988688 Q18221 Q778 Q213361 Q984493 Q984491 Q984499 Q3396832 Q9337 Q5700 Q988696 Q943948 Q697126 Q25305 Q616408 Q610838 Q920971
(c(Q1048835),P706,c(Q15324)|c(Q553036))
action atmost
action union
action find_tuple_counts
relation P706
type Q1048835
type Q15324
action find_tuple_counts
relation P706
type Q1048835
type Q553036
value 1
[ANSWERS] have their location as atmost 1 bodies of water and natural region of Germanys
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q553036'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?k WHERE { { ?k property:P706 ?p . ?k rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15324 } UNION { ?k rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q553036 . ?k property:P706 ?p } } GROUP BY ?k } . FILTER ( ?l <= 1 ) }
Llucmajor Llanddeusant, Carmarthenshire Ancient Rome Santa Eulària des Riu Sineu Ferreries East New Britain Consell Alcúdia Manacor Formentera Montserrat Havelland Alaior Jersey Esporles Campanet Montuïri Campos Sant Antoni de Portmany Brecqhou Capileira Sant Llorenç des Cardassar Basilan Andratx Channel Islands Marratxí Maria de la Salut Costitx Jethou Escorca Wrexham County Borough Es Mercadal Akrotiri and Dhekelia Artà Muro, Majorca Chernivtsi Oblast Cayman Islands Sark Pistyll Sóller Biliran Bohol Vilafranca de Bonany Pollença Selva Felanitx Lloret de Vistalegre Anguilla Blaenau Gwent County Borough Es Castell Ses Salines Sant Joan Alaró Estellencs Sé Porreres Algaida Aceh Leyte Petra, Majorca Deià Herm Sencelles Papua New Guinea Ciutadella de Menorca Binissalem Fornalutx Bunyola Lloseta Santanyí Calvià Santa Eugènia West Java Province Sant Josep de sa Talaia Vulkaneifel Búger Valldemossa Llubí Grenada Zakarpattia Oblast Jamaica Isle of Man Es Migjorn Gran Anglesey Puigpunyent Sant Joan de Labritja Mayen-Koblenz Ariany, Majorca Inca Turks and Caicos Islands The Bahamas Pembrokeshire Sa Pobla Santa Margalida Sant Lluís Tudweiliog Flemish Region Lapland Mancor de la Vall Santa Maria del Camí Bridgend County Borough British Virgin Islands Banyalbufar Son Servera Capdepera
Papua New Guinea, Grenada and Jamaica have their location as atmost 1 bodies of water and natural region of Germanys
Papua New Guinea Grenada Jamaica
action atmost
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type natural region of Germany
value 1
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'natural region of Germany'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?k WHERE { { ?k property:located_on_terrain_feature ?p . ?k rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:body_of_water } UNION { ?k rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:natural_region_of_Germany . ?k property:located_on_terrain_feature ?p } } GROUP BY ?k } . FILTER ( ?l <= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q1048835 Q43229 Q13406554
USER
Which political territories are exactly 2 organizations or sport competitions located in ?
(c(Q43229)|c(Q13406554),P17,c(Q1048835))
action equal
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q43229
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q13406554
value 2
[[{'concept': 'Q43229'}, {'concept': 'Q13406554'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?r ) WHERE { VALUES ( ?l ) { ( ontology:Q43229 ) ( ontology:Q13406554 ) } . ?a rdf:type ?l } GROUP BY ?x } . FILTER ( ?r = 2 ) }
action equal
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type organization
action find_reverse_tuple_counts
relation country
type political territorial entity
type sport competition
value 2
[[{'concept': 'organization'}, {'concept': 'sport competition'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?r ) WHERE { VALUES ( ?l ) { ( ontology:organization ) ( ontology:sport_competition ) } . ?a rdf:type ?l } GROUP BY ?x } . FILTER ( ?r = 2 ) }
[]
political territorial entity organization sport competition
Q785 Q5705
SYSTEM
Jersey, Catalonia
Q785 Q5705
(c(Q43229)|c(Q13406554),P17,c(Q1048835))
action equal
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q43229
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q13406554
value 2
[ANSWERS]
[[{'concept': 'Q43229'}, {'concept': 'Q13406554'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?r ) WHERE { VALUES ( ?l ) { ( ontology:Q43229 ) ( ontology:Q13406554 ) } . ?a rdf:type ?l } GROUP BY ?x } . FILTER ( ?r = 2 ) }
Jersey Catalonia
Which political territories are exactly 2 organizations or sport competitions located in
Jersey Catalonia
action equal
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type organization
action find_reverse_tuple_counts
relation country
type political territorial entity
type sport competition
value 2
[[{'concept': 'organization'}, {'concept': 'sport competition'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?r ) WHERE { VALUES ( ?l ) { ( ontology:organization ) ( ontology:sport_competition ) } . ?a rdf:type ?l } GROUP BY ?x } . FILTER ( ?r = 2 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q8008599 Q1074674
P69
Q163740
USER
Which nonprofit organizations are the alma mater of Nicholas V. Riasanovsky and William Emerson ?
AND((Q1074674,P69,c(Q163740)), (Q8008599,P69,c(Q163740)))
action filter_type
action intersection
action find
entity Q1074674
relation P69
action find
entity Q8008599
relation P69
type Q163740
{'AND': [['Q1074674', 'P69', {'concept': 'Q163740'}], ['Q8008599', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?o WHERE { resource:Q1074674 property:P69 ?o . resource:Q8008599 property:P69 ?o . ?o rdf:type ontology:Q163740 }
William Emerson Nicholas V. Riasanovsky
action filter_type
action intersection
action find
entity Nicholas V. Riasanovsky
relation educated at
action find
entity William Emerson
relation educated at
type nonprofit organization
{'AND': [['Nicholas V. Riasanovsky', 'educated at', {'concept': 'nonprofit organization'}], ['William Emerson', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?o WHERE { resource:Nicholas_V._Riasanovsky property:educated_at ?o . resource:William_Emerson property:educated_at ?o . ?o rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q13371
SYSTEM
Harvard University
Q13371
AND((Q1074674,P69,c(Q163740)), (Q8008599,P69,c(Q163740)))
action filter_type
action intersection
action find
entity Q1074674
relation P69
action find
entity Q8008599
relation P69
type Q163740
[ANSWER] is the alma mater of Nicholas V. Riasanovsky and William Emerson
{'AND': [['Q1074674', 'P69', {'concept': 'Q163740'}], ['Q8008599', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?o WHERE { resource:Q1074674 property:P69 ?o . resource:Q8008599 property:P69 ?o . ?o rdf:type ontology:Q163740 }
Harvard University
Harvard University is the alma mater of Nicholas V. Riasanovsky and William Emerson
Harvard University
action filter_type
action intersection
action find
entity Nicholas V. Riasanovsky
relation educated at
action find
entity William Emerson
relation educated at
type nonprofit organization
{'AND': [['Nicholas V. Riasanovsky', 'educated at', {'concept': 'nonprofit organization'}], ['William Emerson', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?o WHERE { resource:Nicholas_V._Riasanovsky property:educated_at ?o . resource:William_Emerson property:educated_at ?o . ?o rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8008599
P607
Q198
USER
Which war did William Emerson take part in ?
(Q13371,P607,c(Q198))
action filter_type
action find
entity Q8008599
relation P607
type Q198
['Q13371', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?d WHERE { resource:Q8008599 property:P607 ?d . ?d rdf:type ontology:Q198 }
William Emerson
action filter_type
action find
entity William Emerson
relation conflict
type war
['Harvard University', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?d WHERE { resource:William_Emerson property:conflict ?d . ?d rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q13371,P607,c(Q198))
action filter_type
action find
entity Q8008599
relation P607
type Q198
William Emerson took part in [ANSWER]
['Q13371', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?d WHERE { resource:Q8008599 property:P607 ?d . ?d rdf:type ontology:Q198 }
World War II
William Emerson took part in World War II
World War II
action filter_type
action find
entity William Emerson
relation conflict
type war
['Harvard University', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?d WHERE { resource:William_Emerson property:conflict ?d . ?d rdf:type ontology:war }
[]