Simple Question (Direct)
Simple Question
Q1577465
P734
Q82799
USER
Which name is associated with Johann Schmid ?
(Q1577465,P734,c(Q82799))
action filter_type
action find
entity Q1577465
relation P734
type Q82799
['Q1577465', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q1577465 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Johann Schmid
action filter_type
action find
entity Johann Schmid
relation family name
type name
['Johann Schmid', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Johann_Schmid property:family_name ?i . ?i rdf:type ontology:name }
[]
name
Q1496638
SYSTEM
Schmid
Q1496638
(Q1577465,P734,c(Q82799))
action filter_type
action find
entity Q1577465
relation P734
type Q82799
Musical [ANSWER] is associated with Johann [ANSWER]
['Q1577465', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q1577465 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Schmid
Musical Schmid is associated with Johann Schmid
Schmid
action filter_type
action find
entity Johann Schmid
relation family name
type name
['Johann Schmid', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Johann_Schmid property:family_name ?i . ?i rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
Which languages are the languages of work for atmost 15 names ?
(c(Q82799),P407,c(Q34770))
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 15
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:P407 ?g . ?g rdf:type ontology:Q34770 . ?n rdf:type ontology:Q82799 } GROUP BY ?g } . FILTER ( ?r <= 15 ) }
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 15
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:language_of_work_or_name ?g . ?g rdf:type ontology:language . ?n rdf:type ontology:name } GROUP BY ?g } . FILTER ( ?r <= 15 ) }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q397 Q8752 Q37041 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 15
[ANSWERS] the languages of work for atmost 15 names
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:P407 ?g . ?g rdf:type ontology:Q34770 . ?n rdf:type ontology:Q82799 } GROUP BY ?g } . FILTER ( ?r <= 15 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse Latin Basque classical Chinese Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan the languages of work for atmost 15 names
Old Egyptian Old Church Slavonic Etruscan
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 15
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:language_of_work_or_name ?g . ?g rdf:type ontology:language . ?n rdf:type ontology:name } GROUP BY ?g } . FILTER ( ?r <= 15 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1577465
P19
Q13220204
USER
Which administrative country subdivision is the birthplace of Johann Schmid ?
(Q1577465,P19,c(Q13220204))
action filter_type
action find
entity Q1577465
relation P19
type Q13220204
['Q1577465', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?a WHERE { resource:Q1577465 property:P19 ?a . ?a rdf:type ontology:Q13220204 }
Johann Schmid
action filter_type
action find
entity Johann Schmid
relation place of birth
type second-level administrative country subdivision
['Johann Schmid', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?a WHERE { resource:Johann_Schmid property:place_of_birth ?a . ?a rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q64585
SYSTEM
Vals
Q64585
(Q1577465,P19,c(Q13220204))
action filter_type
action find
entity Q1577465
relation P19
type Q13220204
[ANSWER] is the birthplace of Johann Schmid
['Q1577465', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?a WHERE { resource:Q1577465 property:P19 ?a . ?a rdf:type ontology:Q13220204 }
Vals
Vals is the birthplace of Johann Schmid
Vals
action filter_type
action find
entity Johann Schmid
relation place of birth
type second-level administrative country subdivision
['Johann Schmid', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?a WHERE { resource:Johann_Schmid property:place_of_birth ?a . ?a rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q64585
P47
Q13220204
USER
Which administrative country subdivisions do that one share a border with ?
(c(Q13220204),P47,Q64585)
action filter_type
action find
entity Q64585
relation P47
type Q13220204
[{'concept': 'Q13220204'}, 'P47', 'Q64585']
SELECT DISTINCT ?w WHERE { resource:Q64585 property:P47 ?w . ?w rdf:type ontology:Q13220204 }
Vals
action filter_type
action find
entity Vals
relation shares border with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Vals']
SELECT DISTINCT ?w WHERE { resource:Vals property:shares_border_with ?w . ?w rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q64813 Q68789 Q65241
SYSTEM
St. Martin, Blenio, Nufenen
Q64886 Q64813 Q68789 Q65241
(c(Q13220204),P47,Q64585)
action filter_type
action find
entity Q64585
relation P47
type Q13220204
[ANSWERS] that one share a border with
[{'concept': 'Q13220204'}, 'P47', 'Q64585']
SELECT DISTINCT ?w WHERE { resource:Q64585 property:P47 ?w . ?w rdf:type ontology:Q13220204 }
Hinterrhein St. Martin Blenio Nufenen
St. Martin, Blenio and Nufenen that one share a border with
St. Martin Blenio Nufenen
action filter_type
action find
entity Vals
relation shares border with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Vals']
SELECT DISTINCT ?w WHERE { resource:Vals property:shares_border_with ?w . ?w rdf:type ontology:second-level_administrative_country_subdivision }
[]
Clarification
Simple Question|Single Entity|Indirect
Q65241
P17
Q15617994
USER
Which administrative territory is that administrative country subdivision situated in ?
(Q65241,P17,c(Q15617994))
action filter_type
action find
entity Q65241
relation P17
type Q15617994
['Q65241', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q65241 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Nufenen
action filter_type
action find
entity Nufenen
relation country
type designation for an administrative territorial entity
['Nufenen', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Nufenen property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q65241
SYSTEM
Did you mean Nufenen ?
Q64813 Q68789 Q65241
(Q64813,P17,c(Q15617994)) (Q68789,P17,c(Q15617994)) (Q65241,P17,c(Q15617994))
[ANSWER]
['Q64813', 'P17', {'concept': 'Q15617994'}] ['Q68789', 'P17', {'concept': 'Q15617994'}] ['Q65241', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q65241 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
St. Martin Blenio Nufenen
Did you mean Nufenen ?
Nufenen
['St. Martin', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Blenio', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Nufenen', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Nufenen property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q65241,P17,c(Q15617994))
['Q65241', 'P17', {'concept': 'Q15617994'}]
['Nufenen', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q39
SYSTEM
Switzerland
Q39
(Q65241,P17,c(Q15617994))
action filter_type
action find
entity Q65241
relation P17
type Q15617994
That administrative country subdivision is situated in [ANSWER]
['Q65241', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q65241 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Switzerland
That administrative country subdivision is situated in Switzerland
Switzerland
action filter_type
action find
entity Nufenen
relation country
type designation for an administrative territorial entity
['Nufenen', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Nufenen property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories are the countries of origin of greater number of releases than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q39
relation P495
type Q15617994
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { resource:Q39 property:P495 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?h ) . { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:P495 ?d . ?s rdf:type ontology:Q2031291 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } }
action greater
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Switzerland
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { resource:Switzerland property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?h ) . { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:country_of_origin ?d . ?s rdf:type ontology:release . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
designation for an administrative territorial entity release
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q668 Q414 Q142 Q55 Q145 Q148 Q712 Q837 Q252 Q258 Q159 Q43 Q41 Q155 Q884 Q826 Q242 Q33 Q31 Q30 Q36 Q34 Q38 Q20 Q27 Q843 Q17 Q902 Q191 Q298 Q213 Q215 Q79 Q29
(c(Q2031291),P495,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q39
relation P495
type Q15617994
[ANSWERS] are the countries of origin of greater number of releases than that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { resource:Q39 property:P495 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?h ) . { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:P495 ?d . ?s rdf:type ontology:Q2031291 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } }
Israel India Argentina France Netherlands United Kingdom People's Republic of China Fiji Nepal Indonesia South Africa Russia Turkey Greece Brazil South Korea Maldives Belize Finland Belgium United States of America Poland Sweden Italy Norway Ireland Pakistan Japan Bangladesh Estonia Chile Czech Republic Slovenia Egypt Spain
Italy, Brazil and United States of America are the countries of origin of greater number of releases than that administrative territory
Italy Brazil United States of America
action greater
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Switzerland
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { resource:Switzerland property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?h ) . { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:country_of_origin ?d . ?s rdf:type ontology:release . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q155 Q30
P30
Q2221906
USER
Which geographic locations are Italy, Brazil and United States of America a part of ?
(Q38,P30,c(Q2221906)) (Q155,P30,c(Q2221906)) (Q30,P30,c(Q2221906))
action union
action filter_type
action find
entity Q38
relation P30
type Q2221906
action filter_type
action find
entity Q155
relation P30
type Q2221906
action filter_type
action find
entity Q30
relation P30
type Q2221906
['Q38', 'P30', {'concept': 'Q2221906'}] ['Q155', 'P30', {'concept': 'Q2221906'}] ['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:Q2221906 . resource:Q155 property:P30 ?q } UNION { resource:Q38 property:P30 ?q . ?q rdf:type ontology:Q2221906 } }
Italy Brazil United States of America
action union
action filter_type
action find
entity Italy
relation continent
type geographic location
action filter_type
action find
entity Brazil
relation continent
type geographic location
action filter_type
action find
entity United States of America
relation continent
type geographic location
['Italy', 'continent', {'concept': 'geographic location'}] ['Brazil', 'continent', {'concept': 'geographic location'}] ['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:geographic_location . resource:Brazil property:continent ?q } UNION { resource:Italy property:continent ?q . ?q rdf:type ontology:geographic_location } }
[]
geographic location
Q46 Q18 Q49
SYSTEM
Europe, South America, North America
Q46 Q18 Q538 Q49
(Q38,P30,c(Q2221906)) (Q155,P30,c(Q2221906)) (Q30,P30,c(Q2221906))
action union
action filter_type
action find
entity Q38
relation P30
type Q2221906
action filter_type
action find
entity Q155
relation P30
type Q2221906
action filter_type
action find
entity Q30
relation P30
type Q2221906
Are [ANSWERS] are Italy, Brazil and United States of America a part of
['Q38', 'P30', {'concept': 'Q2221906'}] ['Q155', 'P30', {'concept': 'Q2221906'}] ['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:Q2221906 . resource:Q155 property:P30 ?q } UNION { resource:Q38 property:P30 ?q . ?q rdf:type ontology:Q2221906 } }
Europe South America Oceania North America
Are Europe, South America and North America are Italy, Brazil and United States of America a part of
Europe South America North America
action union
action filter_type
action find
entity Italy
relation continent
type geographic location
action filter_type
action find
entity Brazil
relation continent
type geographic location
action filter_type
action find
entity United States of America
relation continent
type geographic location
['Italy', 'continent', {'concept': 'geographic location'}] ['Brazil', 'continent', {'concept': 'geographic location'}] ['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:geographic_location . resource:Brazil property:continent ?q } UNION { resource:Italy property:continent ?q . ?q rdf:type ontology:geographic_location } }
[]