Simple Question (Direct)
Simple Question
Q3940266
P106
Q12737077
USER
Which occupation has Rolando Ferreira as his/her 's career ?
(Q3940266,P106,c(Q12737077))
action filter_type
action find
entity Q3940266
relation P106
type Q12737077
['Q3940266', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q3940266 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Rolando Ferreira
action filter_type
action find
entity Rolando Ferreira
relation occupation
type occupation
['Rolando Ferreira', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Rolando_Ferreira property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q3665646
SYSTEM
basketball player
Q3665646
(Q3940266,P106,c(Q12737077))
action filter_type
action find
entity Q3940266
relation P106
type Q12737077
Player [ANSWER] has Rolando Ferreira as his/her 's career
['Q3940266', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q3940266 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
basketball player
Player basketball player has Rolando Ferreira as his/her 's career
basketball player
action filter_type
action find
entity Rolando Ferreira
relation occupation
type occupation
['Rolando Ferreira', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Rolando_Ferreira property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3665646
P101
Q502895
USER
Who works in the domain of that occupation ?
(c(Q502895),P101,Q3665646)
action filter_type
action find_reverse
entity Q3665646
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q3665646']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P101 resource:Q3665646 }
basketball player
action filter_type
action find_reverse
entity basketball player
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'basketball player']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:field_of_work resource:basketball_player }
[]
common name
Q934632
SYSTEM
Cincy Powell
Q934632
(c(Q502895),P101,Q3665646)
action filter_type
action find_reverse
entity Q3665646
relation P101
type Q502895
[ANSWER] works in the domain of that occupation
[{'concept': 'Q502895'}, 'P101', 'Q3665646']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P101 resource:Q3665646 }
Cincy Powell
Cincy Powell works in the domain of that occupation
Cincy Powell
action filter_type
action find_reverse
entity basketball player
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'basketball player']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:field_of_work resource:basketball_player }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7322950 Q3665646
P54 P361
Q618123
USER
Which geographical objects are basketball player a portion of or are Ricci Greenwood a member of ?
OR((Q3665646,P361,c(Q618123)), (Q7322950,P54,c(Q618123)))
action filter_type
action union
action find
entity Q3665646
relation P361
action find
entity Q7322950
relation P54
type Q618123
{'OR': [['Q3665646', 'P361', {'concept': 'Q618123'}], ['Q7322950', 'P54', {'concept': 'Q618123'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q3665646 property:P361 ?v } UNION { resource:Q7322950 property:P54 ?v } } . ?v rdf:type ontology:Q618123 }
Ricci Greenwood basketball player
action filter_type
action union
action find
entity basketball player
relation part of
action find
entity Ricci Greenwood
relation member of sports team
type geographical object
{'OR': [['basketball player', 'part of', {'concept': 'geographical object'}], ['Ricci Greenwood', 'member of sports team', {'concept': 'geographical object'}]]}
SELECT DISTINCT ?v WHERE { { { resource:basketball_player property:part_of ?v } UNION { resource:Ricci_Greenwood property:member_of_sports_team ?v } } . ?v rdf:type ontology:geographical_object }
[]
geographical object
Q13393265 Q5033898
SYSTEM
basketball team, Canton Invaders
Q13393265 Q5033898
OR((Q3665646,P361,c(Q618123)), (Q7322950,P54,c(Q618123)))
action filter_type
action union
action find
entity Q3665646
relation P361
action find
entity Q7322950
relation P54
type Q618123
[ANSWERS] are basketball player a portion of or are Ricci Greenwood a member of
{'OR': [['Q3665646', 'P361', {'concept': 'Q618123'}], ['Q7322950', 'P54', {'concept': 'Q618123'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q3665646 property:P361 ?v } UNION { resource:Q7322950 property:P54 ?v } } . ?v rdf:type ontology:Q618123 }
basketball team Canton Invaders
Basketball team and Canton Invaders are basketball player a portion of or are Ricci Greenwood a member of
basketball team Canton Invaders
action filter_type
action union
action find
entity basketball player
relation part of
action find
entity Ricci Greenwood
relation member of sports team
type geographical object
{'OR': [['basketball player', 'part of', {'concept': 'geographical object'}], ['Ricci Greenwood', 'member of sports team', {'concept': 'geographical object'}]]}
SELECT DISTINCT ?v WHERE { { { resource:basketball_player property:part_of ?v } UNION { resource:Ricci_Greenwood property:member_of_sports_team ?v } } . ?v rdf:type ontology:geographical_object }
[]
Clarification
Simple Question|Single Entity|Indirect
Q13393265
P641
Q349
USER
Which sport was that geographical object a part of ?
(Q13393265,P641,c(Q349))
action filter_type
action find
entity Q13393265
relation P641
type Q349
['Q13393265', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q13393265 property:P641 ?z . ?z rdf:type ontology:Q349 }
basketball team
action filter_type
action find
entity basketball team
relation sport
type sport
['basketball team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:basketball_team property:sport ?z . ?z rdf:type ontology:sport }
[]
sport
Clarification for simple ques.
Q5033898
SYSTEM
Did you mean Canton Invaders ?
Q13393265 Q5033898
(Q13393265,P641,c(Q349)) (Q5033898,P641,c(Q349))
[ANSWER]
['Q13393265', 'P641', {'concept': 'Q349'}] ['Q5033898', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q13393265 property:P641 ?z . ?z rdf:type ontology:Q349 }
basketball team Canton Invaders
Did you mean Canton Invaders ?
Canton Invaders
['basketball team', 'sport', {'concept': 'sport'}] ['Canton Invaders', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:basketball_team property:sport ?z . ?z rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
USER
No, I meant basketball team. Could you tell me the answer for that?
(Q13393265,P641,c(Q349))
Q13393265
['Q13393265', 'P641', {'concept': 'Q349'}]
['basketball team', 'sport', {'concept': 'sport'}]
[]
Q5372
SYSTEM
basketball
Q5372
(Q13393265,P641,c(Q349))
action filter_type
action find
entity Q13393265
relation P641
type Q349
The [ANSWER] was that geographical object a part of
['Q13393265', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q13393265 property:P641 ?z . ?z rdf:type ontology:Q349 }
basketball
The basketball was that geographical object a part of
basketball
action filter_type
action find
entity basketball team
relation sport
type sport
['basketball team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:basketball_team property:sport ?z . ?z rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P452
Q16979650 Q12737077
USER
How many sibling groups or occupations belongs to the industry that sport ?
(c(Q16979650),P452,Q5372) (c(Q12737077),P452,Q5372) (c(Q16979650),P452,Q5372) (c(Q12737077),P452,Q5372)
action count
action union
action filter_type
action find_reverse
entity Q5372
relation P452
type Q16979650
action filter_type
action find_reverse
entity Q5372
relation P452
type Q12737077
[{'concept': 'Q16979650'}, 'P452', 'Q5372'] [{'concept': 'Q12737077'}, 'P452', 'Q5372'] [{'concept': 'Q16979650'}, 'P452', 'Q5372'] [{'concept': 'Q12737077'}, 'P452', 'Q5372']
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?v . VALUES ( ?v ) { ( ontology:Q16979650 ) ( ontology:Q12737077 ) } }
action count
action union
action filter_type
action find_reverse
entity basketball
relation industry
type sibling group
action filter_type
action find_reverse
entity basketball
relation industry
type occupation
[{'concept': 'sibling group'}, 'industry', 'basketball'] [{'concept': 'occupation'}, 'industry', 'basketball'] [{'concept': 'sibling group'}, 'industry', 'basketball'] [{'concept': 'occupation'}, 'industry', 'basketball']
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?v . VALUES ( ?v ) { ( ontology:sibling_group ) ( ontology:occupation ) } }
[]
sibling group occupation
SYSTEM
2
Q5532366 Q7116733
(c(Q16979650),P452,Q5372) (c(Q12737077),P452,Q5372) (c(Q16979650),P452,Q5372) (c(Q12737077),P452,Q5372)
action count
action union
action filter_type
action find_reverse
entity Q5372
relation P452
type Q16979650
action filter_type
action find_reverse
entity Q5372
relation P452
type Q12737077
[ANSWER]
[{'concept': 'Q16979650'}, 'P452', 'Q5372'] [{'concept': 'Q12737077'}, 'P452', 'Q5372'] [{'concept': 'Q16979650'}, 'P452', 'Q5372'] [{'concept': 'Q12737077'}, 'P452', 'Q5372']
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?v . VALUES ( ?v ) { ( ontology:Q16979650 ) ( ontology:Q12737077 ) } }
general manager Ozzie and Daniel Silna
2
action count
action union
action filter_type
action find_reverse
entity basketball
relation industry
type sibling group
action filter_type
action find_reverse
entity basketball
relation industry
type occupation
[{'concept': 'sibling group'}, 'industry', 'basketball'] [{'concept': 'occupation'}, 'industry', 'basketball'] [{'concept': 'sibling group'}, 'industry', 'basketball'] [{'concept': 'occupation'}, 'industry', 'basketball']
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?v . VALUES ( ?v ) { ( ontology:sibling_group ) ( ontology:occupation ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P88
Q502895 Q3062294 Q2342494
USER
How many people were the persons who commissioned atleast 1 Latin phrases or collectables ?
(c(Q3062294)|c(Q2342494),P88,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q3062294
action find_reverse_tuple_counts
relation P88
type Q502895
type Q2342494
value 1
[[{'concept': 'Q3062294'}, {'concept': 'Q2342494'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?e ) WHERE { { ?v property:P88 ?m . ?m rdf:type ontology:Q502895 . ?v rdf:type ontology:Q3062294 } UNION { ?v property:P88 ?m . ?m rdf:type ontology:Q502895 . ?v rdf:type ontology:Q2342494 } } GROUP BY ?m } . FILTER ( ?e >= 1 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type Latin phrase
action find_reverse_tuple_counts
relation commissioned by
type common name
type collectable
value 1
[[{'concept': 'Latin phrase'}, {'concept': 'collectable'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?e ) WHERE { { ?v property:commissioned_by ?m . ?m rdf:type ontology:common_name . ?v rdf:type ontology:Latin_phrase } UNION { ?v property:commissioned_by ?m . ?m rdf:type ontology:common_name . ?v rdf:type ontology:collectable } } GROUP BY ?m } . FILTER ( ?e >= 1 ) }
[]
common name Latin phrase collectable
SYSTEM
10
Q349243 Q349267 Q316654 Q783595 Q338480 Q16745596 Q366066 Q233224 Q329753 Q47595
(c(Q3062294)|c(Q2342494),P88,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q3062294
action find_reverse_tuple_counts
relation P88
type Q502895
type Q2342494
value 1
[ANSWER]
[[{'concept': 'Q3062294'}, {'concept': 'Q2342494'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?e ) WHERE { { ?v property:P88 ?m . ?m rdf:type ontology:Q502895 . ?v rdf:type ontology:Q3062294 } UNION { ?v property:P88 ?m . ?m rdf:type ontology:Q502895 . ?v rdf:type ontology:Q2342494 } } GROUP BY ?m } . FILTER ( ?e >= 1 ) }
Seiwa Uda Emperor Saga Diego Gelmírez Nicolas Rolin Jacopo Pesaro John Flaxman Gemmei Daigo Alfonso X of Castile
10
action count
action atleast
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type Latin phrase
action find_reverse_tuple_counts
relation commissioned by
type common name
type collectable
value 1
[[{'concept': 'Latin phrase'}, {'concept': 'collectable'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?e ) WHERE { { ?v property:commissioned_by ?m . ?m rdf:type ontology:common_name . ?v rdf:type ontology:Latin_phrase } UNION { ?v property:commissioned_by ?m . ?m rdf:type ontology:common_name . ?v rdf:type ontology:collectable } } GROUP BY ?m } . FILTER ( ?e >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3665646
P425
Q349
USER
Which sport has basketball player as thier associated field of occupation ?
(Q3665646,P425,c(Q349))
action filter_type
action find
entity Q3665646
relation P425
type Q349
['Q3665646', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q3665646 property:P425 ?a . ?a rdf:type ontology:Q349 }
basketball player
action filter_type
action find
entity basketball player
relation field of this occupation
type sport
['basketball player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:basketball_player property:field_of_this_occupation ?a . ?a rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q3665646,P425,c(Q349))
action filter_type
action find
entity Q3665646
relation P425
type Q349
As [ANSWER] has [ANSWER] player as thier associated field of occupation
['Q3665646', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q3665646 property:P425 ?a . ?a rdf:type ontology:Q349 }
basketball
As basketball has basketball player as thier associated field of occupation
basketball
action filter_type
action find
entity basketball player
relation field of this occupation
type sport
['basketball player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:basketball_player property:field_of_this_occupation ?a . ?a rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q934632
P734
Q82799
USER
Who is associated with Cincy Powell ?
(Q934632,P734,c(Q82799))
action filter_type
action find
entity Q934632
relation P734
type Q82799
['Q934632', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q934632 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Cincy Powell
action filter_type
action find
entity Cincy Powell
relation family name
type name
['Cincy Powell', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Cincy_Powell property:family_name ?n . ?n rdf:type ontology:name }
[]
name
Q1158612
SYSTEM
Powell
Q1158612
(Q934632,P734,c(Q82799))
action filter_type
action find
entity Q934632
relation P734
type Q82799
[ANSWER] is associated with Cincy [ANSWER]
['Q934632', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q934632 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Powell
Powell is associated with Cincy Powell
Powell
action filter_type
action find
entity Cincy Powell
relation family name
type name
['Cincy Powell', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Cincy_Powell property:family_name ?n . ?n rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q934632
P19
Q56061
USER
Which administrative territory was Cincy Powell born in ?
(Q934632,P19,c(Q56061))
action filter_type
action find
entity Q934632
relation P19
type Q56061
['Q934632', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . resource:Q934632 property:P19 ?i }
Cincy Powell
action filter_type
action find
entity Cincy Powell
relation place of birth
type administrative territorial entity
['Cincy Powell', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . resource:Cincy_Powell property:place_of_birth ?i }
[]
administrative territorial entity
Q28218
SYSTEM
Baton Rouge
Q28218
(Q934632,P19,c(Q56061))
action filter_type
action find
entity Q934632
relation P19
type Q56061
Cincy Powell was born in [ANSWER]
['Q934632', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . resource:Q934632 property:P19 ?i }
Baton Rouge
Cincy Powell was born in Baton Rouge
Baton Rouge
action filter_type
action find
entity Cincy Powell
relation place of birth
type administrative territorial entity
['Cincy Powell', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . resource:Cincy_Powell property:place_of_birth ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q934632
P21
Q290
USER
Which sex does that person have ?
(Q28218,P21,c(Q290))
action filter_type
action find
entity Q934632
relation P21
type Q290
['Q28218', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q934632 property:P21 ?p . ?p rdf:type ontology:Q290 }
Cincy Powell
action filter_type
action find
entity Cincy Powell
relation gender
type sex
['Baton Rouge', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Cincy_Powell property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q28218,P21,c(Q290))
action filter_type
action find
entity Q934632
relation P21
type Q290
That person has a [ANSWER]
['Q28218', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q934632 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Cincy Powell
relation gender
type sex
['Baton Rouge', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Cincy_Powell property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28218
P206
Q355304
USER
Which watercourse is situated in the neighbourhood of Baton Rouge ?
(Q28218,P206,c(Q355304))
action filter_type
action find
entity Q28218
relation P206
type Q355304
['Q28218', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?c WHERE { resource:Q28218 property:P206 ?c . ?c rdf:type ontology:Q355304 }
Baton Rouge
action filter_type
action find
entity Baton Rouge
relation located next to body of water
type watercourse
['Baton Rouge', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?c WHERE { resource:Baton_Rouge property:located_next_to_body_of_water ?c . ?c rdf:type ontology:watercourse }
[]
watercourse
Q1497
SYSTEM
Mississippi River
Q1497
(Q28218,P206,c(Q355304))
action filter_type
action find
entity Q28218
relation P206
type Q355304
The [ANSWER] is situated in the neighbourhood of Baton Rouge
['Q28218', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?c WHERE { resource:Q28218 property:P206 ?c . ?c rdf:type ontology:Q355304 }
Mississippi River
The Mississippi River is situated in the neighbourhood of Baton Rouge
Mississippi River
action filter_type
action find
entity Baton Rouge
relation located next to body of water
type watercourse
['Baton Rouge', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?c WHERE { resource:Baton_Rouge property:located_next_to_body_of_water ?c . ?c rdf:type ontology:watercourse }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q386724 Q732577
USER
Which occupations were the main subjects in the work atleast 1 works or publications ?
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 1
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?h >= 1 ) . { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:P921 ?u . ?u rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q732577 } UNION { ?m property:P921 ?u . ?u rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q386724 } } GROUP BY ?u } }
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 1
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?h >= 1 ) . { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:main_subject ?u . ?u rdf:type ontology:occupation . ?m rdf:type ontology:publication } UNION { ?m property:main_subject ?u . ?u rdf:type ontology:occupation . ?m rdf:type ontology:work } } GROUP BY ?u } }
[]
occupation work publication
Q16746569 Q16003532 Q3809586
SYSTEM
high school student, middle school student, Wikipedian in Residence
Q3809586 Q2094335 Q9402 Q16746569 Q15320003 Q16003532
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 1
[ANSWERS] were the main subjects in the work atleast 1 works or publications
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?h >= 1 ) . { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:P921 ?u . ?u rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q732577 } UNION { ?m property:P921 ?u . ?u rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q386724 } } GROUP BY ?u } }
Wikipedian in Residence United States Attorney ninja high school student migrant worker middle school student
High school student, middle school student and Wikipedian in Residence were the main subjects in the work atleast 1 works or publications
high school student middle school student Wikipedian in Residence
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 1
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?h >= 1 ) . { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:main_subject ?u . ?u rdf:type ontology:occupation . ?m rdf:type ontology:publication } UNION { ?m property:main_subject ?u . ?u rdf:type ontology:occupation . ?m rdf:type ontology:work } } GROUP BY ?u } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1497
P30
Q2221906
USER
Which geographic location is Mississippi River located in ?
(Q1497,P30,c(Q2221906))
action filter_type
action find
entity Q1497
relation P30
type Q2221906
['Q1497', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { resource:Q1497 property:P30 ?y . ?y rdf:type ontology:Q2221906 }
Mississippi River
action filter_type
action find
entity Mississippi River
relation continent
type geographic location
['Mississippi River', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { resource:Mississippi_River property:continent ?y . ?y rdf:type ontology:geographic_location }
[]
geographic location
Q828
SYSTEM
Americas
Q828
(Q1497,P30,c(Q2221906))
action filter_type
action find
entity Q1497
relation P30
type Q2221906
Which geographic location is Mississippi River located in
['Q1497', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { resource:Q1497 property:P30 ?y . ?y rdf:type ontology:Q2221906 }
Americas
Which geographic location is Mississippi River located in
Americas
action filter_type
action find
entity Mississippi River
relation continent
type geographic location
['Mississippi River', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { resource:Mississippi_River property:continent ?y . ?y rdf:type ontology:geographic_location }
[]