Simple Question (Direct)
Simple Question
Q1058675
P21
Q290
USER
Which sex does Mike Colter belong to ?
(Q1058675,P21,c(Q290))
action filter_type
action find
entity Q1058675
relation P21
type Q290
['Q1058675', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q1058675 property:P21 ?r }
Mike Colter
action filter_type
action find
entity Mike Colter
relation gender
type sex
['Mike Colter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Mike_Colter property:gender ?r }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1058675,P21,c(Q290))
action filter_type
action find
entity Q1058675
relation P21
type Q290
Mike Colter belongs to [ANSWER]
['Q1058675', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q1058675 property:P21 ?r }
male
Mike Colter belongs to male
male
action filter_type
action find
entity Mike Colter
relation gender
type sex
['Mike Colter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Mike_Colter property:gender ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1058675
P161
Q15416
USER
Which television programs stars that person as actor ?
(c(Q15416),P161,Q6581097)
action filter_type
action find_reverse
entity Q1058675
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q6581097']
SELECT DISTINCT ?l WHERE { ?l property:P161 resource:Q1058675 . ?l rdf:type ontology:Q15416 }
Mike Colter
action filter_type
action find_reverse
entity Mike Colter
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'male']
SELECT DISTINCT ?l WHERE { ?l property:cast_member resource:Mike_Colter . ?l rdf:type ontology:television_program }
[]
television program
Q935173 Q18605540 Q20646602
SYSTEM
Taking Chance, Jessica Jones, Luke Cage
Q935173 Q18605540 Q20646602
(c(Q15416),P161,Q6581097)
action filter_type
action find_reverse
entity Q1058675
relation P161
type Q15416
[ANSWERS] star that person as actor
[{'concept': 'Q15416'}, 'P161', 'Q6581097']
SELECT DISTINCT ?l WHERE { ?l property:P161 resource:Q1058675 . ?l rdf:type ontology:Q15416 }
Taking Chance Jessica Jones Luke Cage
Taking Chance, Jessica Jones and Luke Cage star that person as actor
Taking Chance Jessica Jones Luke Cage
action filter_type
action find_reverse
entity Mike Colter
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'male']
SELECT DISTINCT ?l WHERE { ?l property:cast_member resource:Mike_Colter . ?l rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18605540
P495
Q15617994
USER
What is the origin of Jessica Jones ?
(Q18605540,P495,c(Q15617994))
action filter_type
action find
entity Q18605540
relation P495
type Q15617994
['Q18605540', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q18605540 property:P495 ?y . ?y rdf:type ontology:Q15617994 }
Jessica Jones
action filter_type
action find
entity Jessica Jones
relation country of origin
type designation for an administrative territorial entity
['Jessica Jones', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Jessica_Jones property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q18605540,P495,c(Q15617994))
action filter_type
action find
entity Q18605540
relation P495
type Q15617994
The origin of Jessica Jones is the [ANSWER]
['Q18605540', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q18605540 property:P495 ?y . ?y rdf:type ontology:Q15617994 }
United States of America
The origin of Jessica Jones is the United States of America
United States of America
action filter_type
action find
entity Jessica Jones
relation country of origin
type designation for an administrative territorial entity
['Jessica Jones', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Jessica_Jones property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P859
Q939954
USER
Which Magnetic confinement fusion had funding from that administrative territory ?
(c(Q939954),P859,Q30)
action filter_type
action find_reverse
entity Q30
relation P859
type Q939954
[{'concept': 'Q939954'}, 'P859', 'Q30']
SELECT DISTINCT ?c WHERE { ?c property:P859 resource:Q30 . ?c rdf:type ontology:Q939954 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation sponsor
type Magnetic confinement fusion
[{'concept': 'Magnetic confinement fusion'}, 'sponsor', 'United States of America']
SELECT DISTINCT ?c WHERE { ?c property:sponsor resource:United_States_of_America . ?c rdf:type ontology:Magnetic_confinement_fusion }
[]
Magnetic confinement fusion
Q191788
SYSTEM
ITER
Q191788
(c(Q939954),P859,Q30)
action filter_type
action find_reverse
entity Q30
relation P859
type Q939954
[ANSWER] had funding from that administrative territory
[{'concept': 'Q939954'}, 'P859', 'Q30']
SELECT DISTINCT ?c WHERE { ?c property:P859 resource:Q30 . ?c rdf:type ontology:Q939954 }
ITER
ITER had funding from that administrative territory
ITER
action filter_type
action find_reverse
entity United States of America
relation sponsor
type Magnetic confinement fusion
[{'concept': 'Magnetic confinement fusion'}, 'sponsor', 'United States of America']
SELECT DISTINCT ?c WHERE { ?c property:sponsor resource:United_States_of_America . ?c rdf:type ontology:Magnetic_confinement_fusion }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q191788
P17
Q15617994
USER
Which administrative territory is that Magnetic confinement fusion situated in ?
(Q191788,P17,c(Q15617994))
action filter_type
action find
entity Q191788
relation P17
type Q15617994
['Q191788', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q191788 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
ITER
action filter_type
action find
entity ITER
relation country
type designation for an administrative territorial entity
['ITER', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:ITER property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q191788,P17,c(Q15617994))
action filter_type
action find
entity Q191788
relation P17
type Q15617994
That Magnetic confinement fusion is situated in [ANSWER]
['Q191788', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q191788 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
France
That Magnetic confinement fusion is situated in France
France
action filter_type
action find
entity ITER
relation country
type designation for an administrative territorial entity
['ITER', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:ITER property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q191788
P859
Q15617994 Q56061
USER
How many administrative territories or administrative territories are the sponsors of ITER ?
(Q191788,P859,c(Q15617994)) (Q191788,P859,c(Q56061))
action count
action union
action filter_type
action find
entity Q191788
relation P859
type Q15617994
action filter_type
action find
entity Q191788
relation P859
type Q56061
['Q191788', 'P859', {'concept': 'Q15617994'}] ['Q191788', 'P859', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { ?k rdf:type ontology:Q56061 . resource:Q191788 property:P859 ?k } UNION { ?k rdf:type ontology:Q15617994 . resource:Q191788 property:P859 ?k } }
ITER
action count
action union
action filter_type
action find
entity ITER
relation sponsor
type designation for an administrative territorial entity
action filter_type
action find
entity ITER
relation sponsor
type administrative territorial entity
['ITER', 'sponsor', {'concept': 'designation for an administrative territorial entity'}] ['ITER', 'sponsor', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { ?k rdf:type ontology:administrative_territorial_entity . resource:ITER property:sponsor ?k } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:ITER property:sponsor ?k } }
[]
designation for an administrative territorial entity administrative territorial entity
SYSTEM
7
Q17 Q30 Q159 Q668 Q148 Q884 Q458
(Q191788,P859,c(Q15617994)) (Q191788,P859,c(Q56061))
action count
action union
action filter_type
action find
entity Q191788
relation P859
type Q15617994
action filter_type
action find
entity Q191788
relation P859
type Q56061
[ANSWER]
['Q191788', 'P859', {'concept': 'Q15617994'}] ['Q191788', 'P859', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { ?k rdf:type ontology:Q56061 . resource:Q191788 property:P859 ?k } UNION { ?k rdf:type ontology:Q15617994 . resource:Q191788 property:P859 ?k } }
Japan United States of America Russia India People's Republic of China South Korea European Union
7
action count
action union
action filter_type
action find
entity ITER
relation sponsor
type designation for an administrative territorial entity
action filter_type
action find
entity ITER
relation sponsor
type administrative territorial entity
['ITER', 'sponsor', {'concept': 'designation for an administrative territorial entity'}] ['ITER', 'sponsor', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { ?k rdf:type ontology:administrative_territorial_entity . resource:ITER property:sponsor ?k } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:ITER property:sponsor ?k } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q18206289 Q18605540
P750
Q1269299
USER
Which business organizations are the distributors of Jessica Jones and Crouching Tiger, Hidden Dragon: Sword of Destiny ?
AND((Q18605540,P750,c(Q1269299)), (Q18206289,P750,c(Q1269299)))
action filter_type
action intersection
action find
entity Q18605540
relation P750
action find
entity Q18206289
relation P750
type Q1269299
{'AND': [['Q18605540', 'P750', {'concept': 'Q1269299'}], ['Q18206289', 'P750', {'concept': 'Q1269299'}]]}
SELECT DISTINCT ?c WHERE { resource:Q18605540 property:P750 ?c . resource:Q18206289 property:P750 ?c . ?c rdf:type ontology:Q1269299 }
Crouching Tiger, Hidden Dragon: Sword of Destiny Jessica Jones
action filter_type
action intersection
action find
entity Jessica Jones
relation distributor
action find
entity Crouching Tiger, Hidden Dragon: Sword of Destiny
relation distributor
type type of business entity
{'AND': [['Jessica Jones', 'distributor', {'concept': 'type of business entity'}], ['Crouching Tiger, Hidden Dragon: Sword of Destiny', 'distributor', {'concept': 'type of business entity'}]]}
SELECT DISTINCT ?c WHERE { resource:Jessica_Jones property:distributor ?c . resource:Crouching_Tiger,_Hidden_Dragon:_Sword_of_Destiny property:distributor ?c . ?c rdf:type ontology:type_of_business_entity }
[]
type of business entity
Q907311
SYSTEM
Netflix
Q907311
AND((Q18605540,P750,c(Q1269299)), (Q18206289,P750,c(Q1269299)))
action filter_type
action intersection
action find
entity Q18605540
relation P750
action find
entity Q18206289
relation P750
type Q1269299
[ANSWER] is the distributors of Jessica Jones and Crouching Tiger, Hidden Dragon: Sword of Destiny
{'AND': [['Q18605540', 'P750', {'concept': 'Q1269299'}], ['Q18206289', 'P750', {'concept': 'Q1269299'}]]}
SELECT DISTINCT ?c WHERE { resource:Q18605540 property:P750 ?c . resource:Q18206289 property:P750 ?c . ?c rdf:type ontology:Q1269299 }
Netflix
Netflix is the distributors of Jessica Jones and Crouching Tiger, Hidden Dragon: Sword of Destiny
Netflix
action filter_type
action intersection
action find
entity Jessica Jones
relation distributor
action find
entity Crouching Tiger, Hidden Dragon: Sword of Destiny
relation distributor
type type of business entity
{'AND': [['Jessica Jones', 'distributor', {'concept': 'type of business entity'}], ['Crouching Tiger, Hidden Dragon: Sword of Destiny', 'distributor', {'concept': 'type of business entity'}]]}
SELECT DISTINCT ?c WHERE { resource:Jessica_Jones property:distributor ?c . resource:Crouching_Tiger,_Hidden_Dragon:_Sword_of_Destiny property:distributor ?c . ?c rdf:type ontology:type_of_business_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P144
Q15416 Q5398426 Q166142
USER
Which television programs are max number of television series and applications considered a copy of ?
(c(Q5398426)|c(Q166142),P144,c(Q15416))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q15416
type Q5398426
action find_reverse_tuple_counts
relation P144
type Q15416
type Q166142
[[{'concept': 'Q5398426'}, {'concept': 'Q166142'}], 'P144', {'concept': 'Q15416'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?g WHERE { { ?e property:P144 ?g . ?e rdf:type ontology:Q5398426 . ?g rdf:type ontology:Q15416 } UNION { ?e property:P144 ?g . ?e rdf:type ontology:Q166142 . ?g rdf:type ontology:Q15416 } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?p WHERE { { ?q property:P144 ?p . ?p rdf:type ontology:Q15416 . ?q rdf:type ontology:Q5398426 } UNION { ?q property:P144 ?p . ?p rdf:type ontology:Q15416 . ?q rdf:type ontology:Q166142 } } GROUP BY ?p } . FILTER ( ?r = ?m ) }
action argmax
action union
action find_reverse_tuple_counts
relation based on
type television program
type television series
action find_reverse_tuple_counts
relation based on
type television program
type application
[[{'concept': 'television series'}, {'concept': 'application'}], 'based on', {'concept': 'television program'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?g WHERE { { ?e property:based_on ?g . ?e rdf:type ontology:television_series . ?g rdf:type ontology:television_program } UNION { ?e property:based_on ?g . ?e rdf:type ontology:application . ?g rdf:type ontology:television_program } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?p WHERE { { ?q property:based_on ?p . ?p rdf:type ontology:television_program . ?q rdf:type ontology:television_series } UNION { ?q property:based_on ?p . ?p rdf:type ontology:television_program . ?q rdf:type ontology:application } } GROUP BY ?p } . FILTER ( ?r = ?m ) }
[]
television program television series application
Q16290
SYSTEM
Star Trek: The Next Generation
Q16290
(c(Q5398426)|c(Q166142),P144,c(Q15416))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q15416
type Q5398426
action find_reverse_tuple_counts
relation P144
type Q15416
type Q166142
[ANSWER] is max number of television series and applications considered a copy of
[[{'concept': 'Q5398426'}, {'concept': 'Q166142'}], 'P144', {'concept': 'Q15416'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?g WHERE { { ?e property:P144 ?g . ?e rdf:type ontology:Q5398426 . ?g rdf:type ontology:Q15416 } UNION { ?e property:P144 ?g . ?e rdf:type ontology:Q166142 . ?g rdf:type ontology:Q15416 } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?p WHERE { { ?q property:P144 ?p . ?p rdf:type ontology:Q15416 . ?q rdf:type ontology:Q5398426 } UNION { ?q property:P144 ?p . ?p rdf:type ontology:Q15416 . ?q rdf:type ontology:Q166142 } } GROUP BY ?p } . FILTER ( ?r = ?m ) }
Star Trek: The Next Generation
Star Trek: The Next Generation is max number of television series and applications considered a copy of
Star Trek: The Next Generation
action argmax
action union
action find_reverse_tuple_counts
relation based on
type television program
type television series
action find_reverse_tuple_counts
relation based on
type television program
type application
[[{'concept': 'television series'}, {'concept': 'application'}], 'based on', {'concept': 'television program'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?g WHERE { { ?e property:based_on ?g . ?e rdf:type ontology:television_series . ?g rdf:type ontology:television_program } UNION { ?e property:based_on ?g . ?e rdf:type ontology:application . ?g rdf:type ontology:television_program } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?p WHERE { { ?q property:based_on ?p . ?p rdf:type ontology:television_program . ?q rdf:type ontology:television_series } UNION { ?q property:based_on ?p . ?p rdf:type ontology:television_program . ?q rdf:type ontology:application } } GROUP BY ?p } . FILTER ( ?r = ?m ) }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16290 Q253764 Q608075
P161
Q502895
USER
Does Star Trek: The Next Generation have Gates McFadden and Nihad Al Boushi in its star cast ?
(Q16290,P161,Q253764) (Q16290,P161,Q608075)
action is_in
entity Q16290
action intersection
action find_reverse
entity Q253764
relation P161
action find_reverse
entity Q608075
relation P161
['Q16290', 'P161', 'Q253764'] ['Q16290', 'P161', 'Q608075']
ASK WHERE { resource:Q16290 property:P161 resource:Q253764 . resource:Q16290 property:P161 resource:Q608075 }
Star Trek: The Next Generation Gates McFadden Nihad Al Boushi
action is_in
entity Star Trek: The Next Generation
action intersection
action find_reverse
entity Gates McFadden
relation cast member
action find_reverse
entity Nihad Al Boushi
relation cast member
['Star Trek: The Next Generation', 'cast member', 'Gates McFadden'] ['Star Trek: The Next Generation', 'cast member', 'Nihad Al Boushi']
ASK WHERE { resource:Star_Trek:_The_Next_Generation property:cast_member resource:Gates_McFadden . resource:Star_Trek:_The_Next_Generation property:cast_member resource:Nihad_Al_Boushi }
[]
common name
SYSTEM
YES and NO respectively
(Q16290,P161,Q253764) (Q16290,P161,Q608075)
action is_in
entity Q16290
action intersection
action find_reverse
entity Q253764
relation P161
action find_reverse
entity Q608075
relation P161
[ANSWER]
['Q16290', 'P161', 'Q253764'] ['Q16290', 'P161', 'Q608075']
ASK WHERE { resource:Q16290 property:P161 resource:Q253764 . resource:Q16290 property:P161 resource:Q608075 }
YES and NO respectively
action is_in
entity Star Trek: The Next Generation
action intersection
action find_reverse
entity Gates McFadden
relation cast member
action find_reverse
entity Nihad Al Boushi
relation cast member
['Star Trek: The Next Generation', 'cast member', 'Gates McFadden'] ['Star Trek: The Next Generation', 'cast member', 'Nihad Al Boushi']
ASK WHERE { resource:Star_Trek:_The_Next_Generation property:cast_member resource:Gates_McFadden . resource:Star_Trek:_The_Next_Generation property:cast_member resource:Nihad_Al_Boushi }
[]