Simple Question (Direct)
Simple Question
Q1910321
P607
Q350604
USER
Which battle did Matthias Shepler take part in ?
(Q1910321,P607,c(Q350604))
action filter_type
action find
entity Q1910321
relation P607
type Q350604
['Q1910321', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?k WHERE { resource:Q1910321 property:P607 ?k . ?k rdf:type ontology:Q350604 }
Matthias Shepler
action filter_type
action find
entity Matthias Shepler
relation conflict
type armed conflict
['Matthias Shepler', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?k WHERE { resource:Matthias_Shepler property:conflict ?k . ?k rdf:type ontology:armed_conflict }
[]
armed conflict
Q26013
SYSTEM
War of 1812
Q26013
(Q1910321,P607,c(Q350604))
action filter_type
action find
entity Q1910321
relation P607
type Q350604
Matthias Shepler took part in [ANSWER]
['Q1910321', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?k WHERE { resource:Q1910321 property:P607 ?k . ?k rdf:type ontology:Q350604 }
War of 1812
Matthias Shepler took part in War of 1812
War of 1812
action filter_type
action find
entity Matthias Shepler
relation conflict
type armed conflict
['Matthias Shepler', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?k WHERE { resource:Matthias_Shepler property:conflict ?k . ?k rdf:type ontology:armed_conflict }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1910321
P1412
Q34770
USER
Which language can that person understand ?
(Q26013,P1412,c(Q34770))
action filter_type
action find
entity Q1910321
relation P1412
type Q34770
['Q26013', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q1910321 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
Matthias Shepler
action filter_type
action find
entity Matthias Shepler
relation languages spoken, written or signed
type language
['War of 1812', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Matthias_Shepler property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q26013,P1412,c(Q34770))
action filter_type
action find
entity Q1910321
relation P1412
type Q34770
That person can understand the [ANSWER]
['Q26013', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q1910321 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
English
That person can understand the English
English
action filter_type
action find
entity Matthias Shepler
relation languages spoken, written or signed
type language
['War of 1812', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Matthias_Shepler property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q502374 Q1910321
P1412 P364
Q34770
USER
Which languages can Matthias Shepler understand and are the original languages of creation of Trance ?
AND((Q1910321,P1412,c(Q34770)), (Q502374,P364,c(Q34770)))
action filter_type
action intersection
action find
entity Q1910321
relation P1412
action find
entity Q502374
relation P364
type Q34770
{'AND': [['Q1910321', 'P1412', {'concept': 'Q34770'}], ['Q502374', 'P364', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?b WHERE { resource:Q1910321 property:P1412 ?b . resource:Q502374 property:P364 ?b . ?b rdf:type ontology:Q34770 }
Trance Matthias Shepler
action filter_type
action intersection
action find
entity Matthias Shepler
relation languages spoken, written or signed
action find
entity Trance
relation original language of work
type language
{'AND': [['Matthias Shepler', 'languages spoken, written or signed', {'concept': 'language'}], ['Trance', 'original language of work', {'concept': 'language'}]]}
SELECT DISTINCT ?b WHERE { resource:Matthias_Shepler property:languages_spoken,_written_or_signed ?b . resource:Trance property:original_language_of_work ?b . ?b rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
AND((Q1910321,P1412,c(Q34770)), (Q502374,P364,c(Q34770)))
action filter_type
action intersection
action find
entity Q1910321
relation P1412
action find
entity Q502374
relation P364
type Q34770
Matthias Shepler can understand [ANSWER] and are the original languages of creation of Trance
{'AND': [['Q1910321', 'P1412', {'concept': 'Q34770'}], ['Q502374', 'P364', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?b WHERE { resource:Q1910321 property:P1412 ?b . resource:Q502374 property:P364 ?b . ?b rdf:type ontology:Q34770 }
English
Matthias Shepler can understand English and are the original languages of creation of Trance
English
action filter_type
action intersection
action find
entity Matthias Shepler
relation languages spoken, written or signed
action find
entity Trance
relation original language of work
type language
{'AND': [['Matthias Shepler', 'languages spoken, written or signed', {'concept': 'language'}], ['Trance', 'original language of work', {'concept': 'language'}]]}
SELECT DISTINCT ?b WHERE { resource:Matthias_Shepler property:languages_spoken,_written_or_signed ?b . resource:Trance property:original_language_of_work ?b . ?b rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7640091 Q1910321
P27
Q15617994
USER
Which administrative territories are the native countriesof Matthias Shepler or Sung Min ?
OR((Q1910321,P27,c(Q15617994)), (Q7640091,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1910321
relation P27
action find
entity Q7640091
relation P27
type Q15617994
{'OR': [['Q1910321', 'P27', {'concept': 'Q15617994'}], ['Q7640091', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { ?h property:P27 ?v . VALUES ( ?h ) { ( resource:Q1910321 ) ( resource:Q7640091 ) } } }
Sung Min Matthias Shepler
action filter_type
action union
action find
entity Matthias Shepler
relation country of citizenship
action find
entity Sung Min
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Matthias Shepler', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sung Min', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?h property:country_of_citizenship ?v . VALUES ( ?h ) { ( resource:Matthias_Shepler ) ( resource:Sung_Min ) } } }
[]
designation for an administrative territorial entity
Q30 Q884
SYSTEM
United States of America, South Korea
Q30 Q884
OR((Q1910321,P27,c(Q15617994)), (Q7640091,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1910321
relation P27
action find
entity Q7640091
relation P27
type Q15617994
[ANSWERS] are the native countriesof Matthias Shepler or Sung Min
{'OR': [['Q1910321', 'P27', {'concept': 'Q15617994'}], ['Q7640091', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { ?h property:P27 ?v . VALUES ( ?h ) { ( resource:Q1910321 ) ( resource:Q7640091 ) } } }
United States of America South Korea
United States of America and South Korea are the native countriesof Matthias Shepler or Sung Min
United States of America South Korea
action filter_type
action union
action find
entity Matthias Shepler
relation country of citizenship
action find
entity Sung Min
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Matthias Shepler', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sung Min', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?h property:country_of_citizenship ?v . VALUES ( ?h ) { ( resource:Matthias_Shepler ) ( resource:Sung_Min ) } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q739
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with more number of administrative territories than Colombia ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q739
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?d ) WHERE { ?s property:P530 ?f . ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Q739 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?d > ?o ) }
Colombia
action greater
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 Colombia
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 ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?d ) WHERE { ?s property:diplomatic_relation ?f . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Colombia property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d > ?o ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q822 Q241 Q32 Q31 Q30 Q928 Q929 Q39 Q38 Q230 Q27 Q843 Q184 Q225 Q222 Q347 Q17 Q902 Q114 Q212 Q213 Q218 Q79 Q858 Q948 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q739
relation P530
type Q15617994
[ANSWERS] have diplomatic associations with more number of administrative territories than Colombia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?d ) WHERE { ?s property:P530 ?f . ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Q739 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?d > ?o ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Lebanon Cuba Luxembourg Belgium United States of America Philippines Central African Republic Switzerland Italy Georgia Ireland Pakistan Belarus Bosnia and Herzegovina Albania Liechtenstein Japan Bangladesh Kenya Ukraine Czech Republic Romania Egypt Syria Tunisia Libya Cape Verde Zambia
Italy, Brazil and United States of America have diplomatic associations with more number of administrative territories than Colombia
Italy Brazil United States of America
action greater
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 Colombia
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 ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?d ) WHERE { ?s property:diplomatic_relation ?f . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Colombia property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d > ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q869
P530
Q15617994 Q15617994
USER
And also tell me about Thailand?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q869
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?k ) WHERE { ?o rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 . ?o property:P530 ?s } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q869 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?l ) }
Thailand
action greater
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 Thailand
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 ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?k ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?s } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Thailand property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?l ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q419 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q733 Q230 Q27 Q28 Q843 Q184 Q228 Q227 Q225 Q222 Q96 Q347 Q17 Q902 Q298 Q114 Q212 Q213 Q218 Q916 Q79 Q77 Q858 Q948 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q869
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?k ) WHERE { ?o rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 . ?o property:P530 ?s } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q869 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?l ) }
Israel Yemen Peru India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Paraguay Georgia Ireland Hungary Pakistan Belarus Andorra Azerbaijan Bosnia and Herzegovina Albania Mexico Liechtenstein Japan Bangladesh Chile Kenya Ukraine Czech Republic Romania Angola Egypt Uruguay Syria Tunisia Libya Cape Verde Spain Zambia
Italy Brazil United States of America
action greater
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 Thailand
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 ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?k ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?s } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Thailand property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?l ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3285128 Q1910321
P27 P495
Q15617994
USER
Which administrative territories are Matthias Shepler an inhabitant of and are the countries of origin of Man of Tai Chi ?
AND((Q1910321,P27,c(Q15617994)), (Q3285128,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1910321
relation P27
action find
entity Q3285128
relation P495
type Q15617994
{'AND': [['Q1910321', 'P27', {'concept': 'Q15617994'}], ['Q3285128', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { resource:Q1910321 property:P27 ?s . resource:Q3285128 property:P495 ?s . ?s rdf:type ontology:Q15617994 }
Man of Tai Chi Matthias Shepler
action filter_type
action intersection
action find
entity Matthias Shepler
relation country of citizenship
action find
entity Man of Tai Chi
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Matthias Shepler', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Man of Tai Chi', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Matthias_Shepler property:country_of_citizenship ?s . resource:Man_of_Tai_Chi property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q1910321,P27,c(Q15617994)), (Q3285128,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1910321
relation P27
action find
entity Q3285128
relation P495
type Q15617994
[ANSWER] is Matthias Shepler an inhabitant of and is the countries of origin of Man of Tai Chi
{'AND': [['Q1910321', 'P27', {'concept': 'Q15617994'}], ['Q3285128', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { resource:Q1910321 property:P27 ?s . resource:Q3285128 property:P495 ?s . ?s rdf:type ontology:Q15617994 }
United States of America
United States of America is Matthias Shepler an inhabitant of and is the countries of origin of Man of Tai Chi
United States of America
action filter_type
action intersection
action find
entity Matthias Shepler
relation country of citizenship
action find
entity Man of Tai Chi
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Matthias Shepler', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Man of Tai Chi', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Matthias_Shepler property:country_of_citizenship ?s . resource:Man_of_Tai_Chi property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1860
P2439
Q166142 Q44127
USER
How many applications and servers have a correspondence with the language English ?
(c(Q166142),P2439,Q1860) (c(Q44127),P2439,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P2439
type Q166142
action filter_type
action find_reverse
entity Q1860
relation P2439
type Q44127
[{'concept': 'Q166142'}, 'P2439', 'Q1860'] [{'concept': 'Q44127'}, 'P2439', 'Q1860']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q166142 ) ( ontology:Q44127 ) } }
English
action count
action union
action filter_type
action find_reverse
entity English
relation language
type application
action filter_type
action find_reverse
entity English
relation language
type server
[{'concept': 'application'}, 'language', 'English'] [{'concept': 'server'}, 'language', 'English']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:application ) ( ontology:server ) } }
[]
application server
SYSTEM
1 applications and 1 servers
Q686797 Q20707672
(c(Q166142),P2439,Q1860) (c(Q44127),P2439,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P2439
type Q166142
action filter_type
action find_reverse
entity Q1860
relation P2439
type Q44127
[ANSWER]
[{'concept': 'Q166142'}, 'P2439', 'Q1860'] [{'concept': 'Q44127'}, 'P2439', 'Q1860']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q166142 ) ( ontology:Q44127 ) } }
Hacker News DeepDotWeb
1 applications and 1 servers
action count
action union
action filter_type
action find_reverse
entity English
relation language
type application
action filter_type
action find_reverse
entity English
relation language
type server
[{'concept': 'application'}, 'language', 'English'] [{'concept': 'server'}, 'language', 'English']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:application ) ( ontology:server ) } }
[]