Simple Question (Direct)
Simple Question
Q10514301
P106
Q12737077
USER
What is the job of Leanne Ross ?
(Q10514301,P106,c(Q12737077))
action filter_type
action find
entity Q10514301
relation P106
type Q12737077
['Q10514301', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q10514301 property:P106 ?u }
Leanne Ross
action filter_type
action find
entity Leanne Ross
relation occupation
type occupation
['Leanne Ross', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Leanne_Ross property:occupation ?u }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q10514301,P106,c(Q12737077))
action filter_type
action find
entity Q10514301
relation P106
type Q12737077
The job of Leanne Ross is an [ANSWER]
['Q10514301', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q10514301 property:P106 ?u }
association football player
The job of Leanne Ross is an association football player
association football player
action filter_type
action find
entity Leanne Ross
relation occupation
type occupation
['Leanne Ross', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Leanne_Ross property:occupation ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10514301
P21
Q290
USER
Which sex does Leanne Ross have ?
(Q10514301,P21,c(Q290))
action filter_type
action find
entity Q10514301
relation P21
type Q290
['Q10514301', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q10514301 property:P21 ?u . ?u rdf:type ontology:Q290 }
Leanne Ross
action filter_type
action find
entity Leanne Ross
relation gender
type sex
['Leanne Ross', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Leanne_Ross property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q10514301,P21,c(Q290))
action filter_type
action find
entity Q10514301
relation P21
type Q290
Leanne Ross has a [ANSWER]
['Q10514301', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q10514301 property:P21 ?u . ?u rdf:type ontology:Q290 }
female
Leanne Ross has a female
female
action filter_type
action find
entity Leanne Ross
relation gender
type sex
['Leanne Ross', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Leanne_Ross property:gender ?u . ?u rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q16849674 Q10514301
P21
Q290
USER
Or Mark Wnek?
OR((Q10514301,P21,c(Q290)), (Q16849674,P21,c(Q290)))
action filter_type
action union
action find
entity Q10514301
relation P21
action find
entity Q16849674
relation P21
type Q290
{'OR': [['Q10514301', 'P21', {'concept': 'Q290'}], ['Q16849674', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?z ) { ( resource:Q10514301 ) ( resource:Q16849674 ) } . ?z property:P21 ?e } . ?e rdf:type ontology:Q290 }
Mark Wnek Leanne Ross
action filter_type
action union
action find
entity Leanne Ross
relation gender
action find
entity Mark Wnek
relation gender
type sex
{'OR': [['Leanne Ross', 'gender', {'concept': 'sex'}], ['Mark Wnek', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?z ) { ( resource:Leanne_Ross ) ( resource:Mark_Wnek ) } . ?z property:gender ?e } . ?e rdf:type ontology:sex }
[]
sex
Q6581097 Q6581072
SYSTEM
male, female
Q6581097 Q6581072
OR((Q10514301,P21,c(Q290)), (Q16849674,P21,c(Q290)))
action filter_type
action union
action find
entity Q10514301
relation P21
action find
entity Q16849674
relation P21
type Q290
[ANSWERS]
{'OR': [['Q10514301', 'P21', {'concept': 'Q290'}], ['Q16849674', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?z ) { ( resource:Q10514301 ) ( resource:Q16849674 ) } . ?z property:P21 ?e } . ?e rdf:type ontology:Q290 }
male female
male female
action filter_type
action union
action find
entity Leanne Ross
relation gender
action find
entity Mark Wnek
relation gender
type sex
{'OR': [['Leanne Ross', 'gender', {'concept': 'sex'}], ['Mark Wnek', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?z ) { ( resource:Leanne_Ross ) ( resource:Mark_Wnek ) } . ?z property:gender ?e } . ?e rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q11201210
P21
Q502895
USER
Are Asmik Grigorian a those sexes ?
(Q11201210,P21,Q6581097) (Q11201210,P21,Q6581072)
action is_in
entity prev_answer
action find
entity Q11201210
relation P21
['Q11201210', 'P21', 'Q6581097'] ['Q11201210', 'P21', 'Q6581072']
ASK WHERE { resource:Q11201210 property:P21 ?g . VALUES ( ?g ) { ( resource:Q6581097 ) ( resource:Q6581072 ) } }
Asmik Grigorian
action is_in
entity prev_answer
action find
entity Asmik Grigorian
relation gender
['Asmik Grigorian', 'gender', 'male'] ['Asmik Grigorian', 'gender', 'female']
ASK WHERE { resource:Asmik_Grigorian property:gender ?g . VALUES ( ?g ) { ( resource:male ) ( resource:female ) } }
[]
common name
SYSTEM
YES
(Q11201210,P21,Q6581097) (Q11201210,P21,Q6581072)
action is_in
entity prev_answer
action find
entity Q11201210
relation P21
[ANSWER]
['Q11201210', 'P21', 'Q6581097'] ['Q11201210', 'P21', 'Q6581072']
ASK WHERE { resource:Q11201210 property:P21 ?g . VALUES ( ?g ) { ( resource:Q6581097 ) ( resource:Q6581072 ) } }
Yes
action is_in
entity prev_answer
action find
entity Asmik Grigorian
relation gender
['Asmik Grigorian', 'gender', 'male'] ['Asmik Grigorian', 'gender', 'female']
ASK WHERE { resource:Asmik_Grigorian property:gender ?g . VALUES ( ?g ) { ( resource:male ) ( resource:female ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the patron saint of approximately 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:P417 ?c . ?c rdf:type ontology:Q502895 . ?k rdf:type ontology:Q12737077 } GROUP BY ?c } . FILTER ( ?l = 2 ) }
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:patron_saint ?c . ?c rdf:type ontology:common_name . ?k rdf:type ontology:occupation } GROUP BY ?c } . FILTER ( ?l = 2 ) }
[]
common name occupation
SYSTEM
10
Q229190 Q328804 Q166876 Q170547 Q183240 Q196653 Q44265 Q744884 Q151967 Q44248
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:P417 ?c . ?c rdf:type ontology:Q502895 . ?k rdf:type ontology:Q12737077 } GROUP BY ?c } . FILTER ( ?l = 2 ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Saint Lucy Saint Veronica Benedict of Nursia Zita Saint Blaise Jerome
10
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:patron_saint ?c . ?c rdf:type ontology:common_name . ?k rdf:type ontology:occupation } GROUP BY ?c } . FILTER ( ?l = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4804294 Q16849674
P27
Q15617994
USER
Which administrative territories are Mark Wnek or Asghar Kardoust an inhabitant of ?
OR((Q16849674,P27,c(Q15617994)), (Q4804294,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16849674
relation P27
action find
entity Q4804294
relation P27
type Q15617994
{'OR': [['Q16849674', 'P27', {'concept': 'Q15617994'}], ['Q4804294', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Q16849674 ) ( resource:Q4804294 ) } . ?v property:P27 ?g } . ?g rdf:type ontology:Q15617994 }
Asghar Kardoust Mark Wnek
action filter_type
action union
action find
entity Mark Wnek
relation country of citizenship
action find
entity Asghar Kardoust
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mark Wnek', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Asghar Kardoust', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Mark_Wnek ) ( resource:Asghar_Kardoust ) } . ?v property:country_of_citizenship ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q794
SYSTEM
United Kingdom, Iran
Q145 Q794
OR((Q16849674,P27,c(Q15617994)), (Q4804294,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16849674
relation P27
action find
entity Q4804294
relation P27
type Q15617994
[ANSWERS] are Mark Wnek or Asghar Kardoust an inhabitant of
{'OR': [['Q16849674', 'P27', {'concept': 'Q15617994'}], ['Q4804294', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Q16849674 ) ( resource:Q4804294 ) } . ?v property:P27 ?g } . ?g rdf:type ontology:Q15617994 }
United Kingdom Iran
United Kingdom and Iran are Mark Wnek or Asghar Kardoust an inhabitant of
United Kingdom Iran
action filter_type
action union
action find
entity Mark Wnek
relation country of citizenship
action find
entity Asghar Kardoust
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mark Wnek', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Asghar Kardoust', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Mark_Wnek ) ( resource:Asghar_Kardoust ) } . ?v property:country_of_citizenship ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q54741
P530
Q15617994
USER
Are Sorianello known to have diplomatic connections with those ones ?
(Q54741,P530,Q145) (Q54741,P530,Q794)
action is_in
entity prev_answer
action find
entity Q54741
relation P530
['Q54741', 'P530', 'Q145'] ['Q54741', 'P530', 'Q794']
ASK WHERE { VALUES ( ?p ) { ( resource:Q145 ) ( resource:Q794 ) } . resource:Q54741 property:P530 ?p }
Sorianello
action is_in
entity prev_answer
action find
entity Sorianello
relation diplomatic relation
['Sorianello', 'diplomatic relation', 'United Kingdom'] ['Sorianello', 'diplomatic relation', 'Iran']
ASK WHERE { VALUES ( ?p ) { ( resource:United_Kingdom ) ( resource:Iran ) } . resource:Sorianello property:diplomatic_relation ?p }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q54741,P530,Q145) (Q54741,P530,Q794)
action is_in
entity prev_answer
action find
entity Q54741
relation P530
[ANSWER]
['Q54741', 'P530', 'Q145'] ['Q54741', 'P530', 'Q794']
ASK WHERE { VALUES ( ?p ) { ( resource:Q145 ) ( resource:Q794 ) } . resource:Q54741 property:P530 ?p }
No
action is_in
entity prev_answer
action find
entity Sorianello
relation diplomatic relation
['Sorianello', 'diplomatic relation', 'United Kingdom'] ['Sorianello', 'diplomatic relation', 'Iran']
ASK WHERE { VALUES ( ?p ) { ( resource:United_Kingdom ) ( resource:Iran ) } . resource:Sorianello property:diplomatic_relation ?p }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with max number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?l ) WHERE { ?r property:P530 ?m . ?r rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?l = ?t ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?t ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?w ) WHERE { ?f rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?f property:P530 ?p } GROUP BY ?f } } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?l ) WHERE { ?r property:diplomatic_relation ?m . ?r rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?l = ?t ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?t ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?w ) WHERE { ?f rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:diplomatic_relation ?p } GROUP BY ?f } } }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] is known to have diplomatic connections with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?l ) WHERE { ?r property:P530 ?m . ?r rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?l = ?t ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?t ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?w ) WHERE { ?f rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?f property:P530 ?p } GROUP BY ?f } } }
Germany
Germany is known to have diplomatic connections with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?l ) WHERE { ?r property:diplomatic_relation ?m . ?r rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?l = ?t ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?t ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?w ) WHERE { ?f rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:diplomatic_relation ?p } GROUP BY ?f } } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P159
Q43229
USER
Which organizations have their head office location at that political territory ?
(c(Q43229),P159,Q183)
action filter_type
action find_reverse
entity Q183
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q183']
SELECT DISTINCT ?p WHERE { ?p property:P159 resource:Q183 . ?p rdf:type ontology:Q43229 }
Germany
action filter_type
action find_reverse
entity Germany
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Germany']
SELECT DISTINCT ?p WHERE { ?p property:headquarters_location resource:Germany . ?p rdf:type ontology:organization }
[]
organization
Q2575704 Q5749752 Q475539
SYSTEM
Woellmer Type Foundry, Heym, Deutsche Waffen und Munitionsfabriken
Q82555 Q449727 Q4040478 Q3334409 Q21197087 Q17508239 Q5749752 Q17086983 Q4867891 Q6030078 Q6430062 Q475539 Q2575704
(c(Q43229),P159,Q183)
action filter_type
action find_reverse
entity Q183
relation P159
type Q43229
[ANSWERS] have their head office location at that political territory
[{'concept': 'Q43229'}, 'P159', 'Q183']
SELECT DISTINCT ?p WHERE { ?p property:P159 resource:Q183 . ?p rdf:type ontology:Q43229 }
Egmont Manga & Anime Alweg Headup Games NG.DEV.TEAM Eve Audio Be quiet! Heym Hybris BassLab Infitec Viventura Deutsche Waffen und Munitionsfabriken Woellmer Type Foundry
Woellmer Type Foundry, Heym and Deutsche Waffen und Munitionsfabriken have their head office location at that political territory
Woellmer Type Foundry Heym Deutsche Waffen und Munitionsfabriken
action filter_type
action find_reverse
entity Germany
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Germany']
SELECT DISTINCT ?p WHERE { ?p property:headquarters_location resource:Germany . ?p rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P532
Q2235308
USER
Which ship type has its base port as United Kingdom ?
(c(Q2235308),P532,Q145)
action filter_type
action find_reverse
entity Q145
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', 'Q145']
SELECT DISTINCT ?n WHERE { ?n property:P532 resource:Q145 . ?n rdf:type ontology:Q2235308 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'United Kingdom']
SELECT DISTINCT ?n WHERE { ?n property:port_of_registry resource:United_Kingdom . ?n rdf:type ontology:ship_type }
[]
ship type
Q7440002
SYSTEM
Sea Shepherd II
Q7440002
(c(Q2235308),P532,Q145)
action filter_type
action find_reverse
entity Q145
relation P532
type Q2235308
[ANSWER] has its base port as United Kingdom
[{'concept': 'Q2235308'}, 'P532', 'Q145']
SELECT DISTINCT ?n WHERE { ?n property:P532 resource:Q145 . ?n rdf:type ontology:Q2235308 }
Sea Shepherd II
Sea Shepherd II has its base port as United Kingdom
Sea Shepherd II
action filter_type
action find_reverse
entity United Kingdom
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'United Kingdom']
SELECT DISTINCT ?n WHERE { ?n property:port_of_registry resource:United_Kingdom . ?n rdf:type ontology:ship_type }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7440002
P127
Q43229
USER
Which organization does that ship type belong to ?
(Q7440002,P127,c(Q43229))
action filter_type
action find
entity Q7440002
relation P127
type Q43229
['Q7440002', 'P127', {'concept': 'Q43229'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q43229 . resource:Q7440002 property:P127 ?v }
Sea Shepherd II
action filter_type
action find
entity Sea Shepherd II
relation owned by
type organization
['Sea Shepherd II', 'owned by', {'concept': 'organization'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:organization . resource:Sea_Shepherd_II property:owned_by ?v }
[]
organization
Q731200
SYSTEM
Sea Shepherd Conservation Society
Q731200
(Q7440002,P127,c(Q43229))
action filter_type
action find
entity Q7440002
relation P127
type Q43229
That ship type belongs to [ANSWER]
['Q7440002', 'P127', {'concept': 'Q43229'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q43229 . resource:Q7440002 property:P127 ?v }
Sea Shepherd Conservation Society
That ship type belongs to Sea Shepherd Conservation Society
Sea Shepherd Conservation Society
action filter_type
action find
entity Sea Shepherd II
relation owned by
type organization
['Sea Shepherd II', 'owned by', {'concept': 'organization'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:organization . resource:Sea_Shepherd_II property:owned_by ?v }
[]