Simple Question (Direct)
Simple Question
Q555065
P641
Q349
USER
What was the sport that Joe DeLamielleure was a part of ?
(Q555065,P641,c(Q349))
action filter_type
action find
entity Q555065
relation P641
type Q349
['Q555065', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q349 . resource:Q555065 property:P641 ?f }
Joe DeLamielleure
action filter_type
action find
entity Joe DeLamielleure
relation sport
type sport
['Joe DeLamielleure', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sport . resource:Joe_DeLamielleure property:sport ?f }
[]
sport
Q41323
SYSTEM
American football
Q41323
(Q555065,P641,c(Q349))
action filter_type
action find
entity Q555065
relation P641
type Q349
The sport that Joe DeLamielleure was a part of was the [ANSWER]
['Q555065', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q349 . resource:Q555065 property:P641 ?f }
American football
The sport that Joe DeLamielleure was a part of was the American football
American football
action filter_type
action find
entity Joe DeLamielleure
relation sport
type sport
['Joe DeLamielleure', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sport . resource:Joe_DeLamielleure property:sport ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q555065
P27
Q15617994
USER
Which administrative territory is Joe DeLamielleure an inhabitant of ?
(Q555065,P27,c(Q15617994))
action filter_type
action find
entity Q555065
relation P27
type Q15617994
['Q555065', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q555065 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Joe DeLamielleure
action filter_type
action find
entity Joe DeLamielleure
relation country of citizenship
type designation for an administrative territorial entity
['Joe DeLamielleure', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Joe_DeLamielleure property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q555065,P27,c(Q15617994))
action filter_type
action find
entity Q555065
relation P27
type Q15617994
[ANSWER] is Joe DeLamielleure an inhabitant of
['Q555065', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q555065 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
United States of America is Joe DeLamielleure an inhabitant of
United States of America
action filter_type
action find
entity Joe DeLamielleure
relation country of citizenship
type designation for an administrative territorial entity
['Joe DeLamielleure', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Joe_DeLamielleure property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2063635
Q15617994
USER
And also tell me about Paulaseer?
(Q2063635,P27,c(Q15617994))
action filter_type
action find
entity Q2063635
relation P27
type Q15617994
['Q2063635', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q2063635 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Paulaseer
action filter_type
action find
entity Paulaseer
relation country of citizenship
type designation for an administrative territorial entity
['Paulaseer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Paulaseer property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
(Q2063635,P27,c(Q15617994))
action filter_type
action find
entity Q2063635
relation P27
type Q15617994
[ANSWER]
['Q2063635', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q2063635 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
India
India
action filter_type
action find
entity Paulaseer
relation country of citizenship
type designation for an administrative territorial entity
['Paulaseer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Paulaseer property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q668 Q38
P530
Q15617994
USER
Does Italy have diplomatic relations with that one ?
(Q668,P530,Q38)
action is_in
entity Q38
action find
entity Q668
relation P530
['Q668', 'P530', 'Q38']
ASK WHERE { resource:Q668 property:P530 resource:Q38 }
India Italy
action is_in
entity Italy
action find
entity India
relation diplomatic relation
['India', 'diplomatic relation', 'Italy']
ASK WHERE { resource:India property:diplomatic_relation resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q668,P530,Q38)
action is_in
entity Q38
action find
entity Q668
relation P530
[ANSWER]
['Q668', 'P530', 'Q38']
ASK WHERE { resource:Q668 property:P530 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity India
relation diplomatic relation
['India', 'diplomatic relation', 'Italy']
ASK WHERE { resource:India property:diplomatic_relation resource:Italy }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relations with atmost 85 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 85
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s property:P530 ?m . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?p <= 85 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 85
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s property:diplomatic_relation ?m . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?p <= 85 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 85
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s property:P530 ?m . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?p <= 85 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 85
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s property:diplomatic_relation ?m . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?p <= 85 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q5277687 Q555065
P106
Q12737077
USER
Which occupations do Joe DeLamielleure and Dimitrius Underwood do for a living ?
AND((Q555065,P106,c(Q12737077)), (Q5277687,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q555065
relation P106
action find
entity Q5277687
relation P106
type Q12737077
{'AND': [['Q555065', 'P106', {'concept': 'Q12737077'}], ['Q5277687', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { resource:Q555065 property:P106 ?s . resource:Q5277687 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Dimitrius Underwood Joe DeLamielleure
action filter_type
action intersection
action find
entity Joe DeLamielleure
relation occupation
action find
entity Dimitrius Underwood
relation occupation
type occupation
{'AND': [['Joe DeLamielleure', 'occupation', {'concept': 'occupation'}], ['Dimitrius Underwood', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { resource:Joe_DeLamielleure property:occupation ?s . resource:Dimitrius_Underwood property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
AND((Q555065,P106,c(Q12737077)), (Q5277687,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q555065
relation P106
action find
entity Q5277687
relation P106
type Q12737077
[ANSWER] Joe DeLamielleure and Dimitrius Underwood do for a living
{'AND': [['Q555065', 'P106', {'concept': 'Q12737077'}], ['Q5277687', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { resource:Q555065 property:P106 ?s . resource:Q5277687 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
American football player
American football player Joe DeLamielleure and Dimitrius Underwood do for a living
American football player
action filter_type
action intersection
action find
entity Joe DeLamielleure
relation occupation
action find
entity Dimitrius Underwood
relation occupation
type occupation
{'AND': [['Joe DeLamielleure', 'occupation', {'concept': 'occupation'}], ['Dimitrius Underwood', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { resource:Joe_DeLamielleure property:occupation ?s . resource:Dimitrius_Underwood property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26314591 Q38
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relations with Italy or do Fenn Farmhouse belong to ?
OR((Q38,P530,c(Q15617994)), (Q26314591,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q26314591
relation P17
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q26314591', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q38 property:P530 ?d } UNION { resource:Q26314591 property:P17 ?d } } . ?d rdf:type ontology:Q15617994 }
Fenn Farmhouse Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Fenn Farmhouse
relation country
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Fenn Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Italy property:diplomatic_relation ?d } UNION { resource:Fenn_Farmhouse property:country ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q41 Q28 Q423 Q155 Q212 Q794 Q159 Q184 Q39 Q1016
SYSTEM
Some of them are Greece, Hungary, North Korea, Brazil, Ukraine, Iran, Russia, Belarus, Switzerland, Libya
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q30 Q37 Q36 Q79 Q34 Q77 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
OR((Q38,P530,c(Q15617994)), (Q26314591,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q26314591
relation P17
type Q15617994
[ANSWERS] have diplomatic relations with Italy or do Fenn Farmhouse belong to
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q26314591', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q38 property:P530 ?d } UNION { resource:Q26314591 property:P17 ?d } } . ?d rdf:type ontology:Q15617994 }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan United States of America Lithuania Poland Egypt Sweden Uruguay Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Philippines Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
Greece, Hungary, North Korea, Brazil, Ukraine, Iran, Russia, Belarus, Switzerland and Libya have diplomatic relations with Italy or do Fenn Farmhouse belong to
Greece Hungary North Korea Brazil Ukraine Iran Russia Belarus Switzerland Libya
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Fenn Farmhouse
relation country
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Fenn Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Italy property:diplomatic_relation ?d } UNION { resource:Fenn_Farmhouse property:country ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]