Simple Question (Direct)
Simple Question
Q382433
P26
Q502895
USER
Which person is married to Charles III, Prince of Monaco ?
(Q382433,P26,c(Q502895))
action filter_type
action find
entity Q382433
relation P26
type Q502895
['Q382433', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q382433 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Charles III, Prince of Monaco
action filter_type
action find
entity Charles III, Prince of Monaco
relation spouse
type common name
['Charles III, Prince of Monaco', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Charles_III,_Prince_of_Monaco property:spouse ?q . ?q rdf:type ontology:common_name }
[]
common name
Q445061
SYSTEM
Antoinette de Mérode
Q445061
(Q382433,P26,c(Q502895))
action filter_type
action find
entity Q382433
relation P26
type Q502895
[ANSWER] is married to Charles III, Prince of Monaco
['Q382433', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q382433 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Antoinette de Mérode
Antoinette de Mérode is married to Charles III, Prince of Monaco
Antoinette de Mérode
action filter_type
action find
entity Charles III, Prince of Monaco
relation spouse
type common name
['Charles III, Prince of Monaco', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Charles_III,_Prince_of_Monaco property:spouse ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q382433
P53
Q8436
USER
What is the family that Charles III, Prince of Monaco belongs to ?
(Q382433,P53,c(Q8436))
action filter_type
action find
entity Q382433
relation P53
type Q8436
['Q382433', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?t WHERE { resource:Q382433 property:P53 ?t . ?t rdf:type ontology:Q8436 }
Charles III, Prince of Monaco
action filter_type
action find
entity Charles III, Prince of Monaco
relation noble family
type family
['Charles III, Prince of Monaco', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?t WHERE { resource:Charles_III,_Prince_of_Monaco property:noble_family ?t . ?t rdf:type ontology:family }
[]
family
Q668182
SYSTEM
House of Grimaldi
Q668182
(Q382433,P53,c(Q8436))
action filter_type
action find
entity Q382433
relation P53
type Q8436
The family that Charles III , Prince of Monaco belongs to is the [ANSWER]
['Q382433', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?t WHERE { resource:Q382433 property:P53 ?t . ?t rdf:type ontology:Q8436 }
House of Grimaldi
The family that Charles III , Prince of Monaco belongs to is the House of Grimaldi
House of Grimaldi
action filter_type
action find
entity Charles III, Prince of Monaco
relation noble family
type family
['Charles III, Prince of Monaco', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?t WHERE { resource:Charles_III,_Prince_of_Monaco property:noble_family ?t . ?t rdf:type ontology:family }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q445061
P27
Q15617994
USER
Which administrative territory does Antoinette de Mérode belong to ?
(Q445061,P27,c(Q15617994))
action filter_type
action find
entity Q445061
relation P27
type Q15617994
['Q445061', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q445061 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Antoinette de Mérode
action filter_type
action find
entity Antoinette de Mérode
relation country of citizenship
type designation for an administrative territorial entity
['Antoinette de Mérode', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Antoinette_de_Mérode property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31
SYSTEM
Belgium
Q31
(Q445061,P27,c(Q15617994))
action filter_type
action find
entity Q445061
relation P27
type Q15617994
Antoinette de Mérode belongs to [ANSWER]
['Q445061', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q445061 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Belgium
Antoinette de Mérode belongs to Belgium
Belgium
action filter_type
action find
entity Antoinette de Mérode
relation country of citizenship
type designation for an administrative territorial entity
['Antoinette de Mérode', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Antoinette_de_Mérode property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q445061
P25
Q502895
USER
How many people have Antoinette de Mérode as mother ?
(c(Q502895),P25,Q445061)
action count
action filter_type
action find_reverse
entity Q445061
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q445061']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:P25 resource:Q445061 . ?r rdf:type ontology:Q502895 }
Antoinette de Mérode
action count
action filter_type
action find_reverse
entity Antoinette de Mérode
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Antoinette de Mérode']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:mother resource:Antoinette_de_Mérode . ?r rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q159646
(c(Q502895),P25,Q445061)
action count
action filter_type
action find_reverse
entity Q445061
relation P25
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q445061']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:P25 resource:Q445061 . ?r rdf:type ontology:Q502895 }
Albert I, Prince of Monaco
1
action count
action filter_type
action find_reverse
entity Antoinette de Mérode
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Antoinette de Mérode']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:mother resource:Antoinette_de_Mérode . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q445061
P21
Q290
USER
What is the sex of that person ?
action filter_type
action find
entity Q445061
relation P21
type Q290
SELECT DISTINCT ?p WHERE { resource:Q445061 property:P21 ?p . ?p rdf:type ontology:Q290 }
Antoinette de Mérode
action filter_type
action find
entity Antoinette de Mérode
relation gender
type sex
SELECT DISTINCT ?p WHERE { resource:Antoinette_de_Mérode property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
action filter_type
action find
entity Q445061
relation P21
type Q290
The sex of that person is the [ANSWER]
SELECT DISTINCT ?p WHERE { resource:Q445061 property:P21 ?p . ?p rdf:type ontology:Q290 }
female
The sex of that person is the female
female
action filter_type
action find
entity Antoinette de Mérode
relation gender
type sex
SELECT DISTINCT ?p WHERE { resource:Antoinette_de_Mérode property:gender ?p . ?p rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q382433
P27
Q515 Q15617994
USER
How many cities and administrative territories are Charles III, Prince of Monaco an inhabitant of ?
(Q382433,P27,c(Q515)) (Q382433,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q382433
relation P27
type Q515
action filter_type
action find
entity Q382433
relation P27
type Q15617994
['Q382433', 'P27', {'concept': 'Q515'}] ['Q382433', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { VALUES ( ?t ) { ( ontology:Q515 ) ( ontology:Q15617994 ) } . ?d rdf:type ?t }
Charles III, Prince of Monaco
action count
action union
action filter_type
action find
entity Charles III, Prince of Monaco
relation country of citizenship
type city
action filter_type
action find
entity Charles III, Prince of Monaco
relation country of citizenship
type designation for an administrative territorial entity
['Charles III, Prince of Monaco', 'country of citizenship', {'concept': 'city'}] ['Charles III, Prince of Monaco', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { VALUES ( ?t ) { ( ontology:city ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?d rdf:type ?t }
[]
city designation for an administrative territorial entity
SYSTEM
1 cities and 1 administrative territories
Q142 Q235
(Q382433,P27,c(Q515)) (Q382433,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q382433
relation P27
type Q515
action filter_type
action find
entity Q382433
relation P27
type Q15617994
[ANSWER]
['Q382433', 'P27', {'concept': 'Q515'}] ['Q382433', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { VALUES ( ?t ) { ( ontology:Q515 ) ( ontology:Q15617994 ) } . ?d rdf:type ?t }
France Monaco
1 cities and 1 administrative territories
action count
action union
action filter_type
action find
entity Charles III, Prince of Monaco
relation country of citizenship
type city
action filter_type
action find
entity Charles III, Prince of Monaco
relation country of citizenship
type designation for an administrative territorial entity
['Charles III, Prince of Monaco', 'country of citizenship', {'concept': 'city'}] ['Charles III, Prince of Monaco', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { VALUES ( ?t ) { ( ontology:city ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?d rdf:type ?t }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11993094 Q445061
P20
Q56061
USER
Which administrative territories did the demise of Antoinette de Mérode or Odd Frogg occur ?
OR((Q445061,P20,c(Q56061)), (Q11993094,P20,c(Q56061)))
action filter_type
action union
action find
entity Q445061
relation P20
action find
entity Q11993094
relation P20
type Q56061
{'OR': [['Q445061', 'P20', {'concept': 'Q56061'}], ['Q11993094', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { ?m property:P20 ?r . VALUES ( ?m ) { ( resource:Q445061 ) ( resource:Q11993094 ) } } . ?r rdf:type ontology:Q56061 }
Odd Frogg Antoinette de Mérode
action filter_type
action union
action find
entity Antoinette de Mérode
relation place of death
action find
entity Odd Frogg
relation place of death
type administrative territorial entity
{'OR': [['Antoinette de Mérode', 'place of death', {'concept': 'administrative territorial entity'}], ['Odd Frogg', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?m property:place_of_death ?r . VALUES ( ?m ) { ( resource:Antoinette_de_Mérode ) ( resource:Odd_Frogg ) } } . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90 Q585
SYSTEM
Paris, Oslo
Q90 Q585
OR((Q445061,P20,c(Q56061)), (Q11993094,P20,c(Q56061)))
action filter_type
action union
action find
entity Q445061
relation P20
action find
entity Q11993094
relation P20
type Q56061
The demise of Antoinette de Mérode or Odd Frogg occurred in [ANSWERS]
{'OR': [['Q445061', 'P20', {'concept': 'Q56061'}], ['Q11993094', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { ?m property:P20 ?r . VALUES ( ?m ) { ( resource:Q445061 ) ( resource:Q11993094 ) } } . ?r rdf:type ontology:Q56061 }
Paris Oslo
The demise of Antoinette de Mérode or Odd Frogg occurred in Paris and Oslo
Paris Oslo
action filter_type
action union
action find
entity Antoinette de Mérode
relation place of death
action find
entity Odd Frogg
relation place of death
type administrative territorial entity
{'OR': [['Antoinette de Mérode', 'place of death', {'concept': 'administrative territorial entity'}], ['Odd Frogg', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?m property:place_of_death ?r . VALUES ( ?m ) { ( resource:Antoinette_de_Mérode ) ( resource:Odd_Frogg ) } } . ?r rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16205080
P840
Q15416
USER
Do Teenage Mutant Ninja Turtles (1987 TV series) (season 7) have their setting located at those administrative territories ?
(Q16205080,P840,Q90) (Q16205080,P840,Q585)
action is_in
entity prev_answer
action find
entity Q16205080
relation P840
['Q16205080', 'P840', 'Q90'] ['Q16205080', 'P840', 'Q585']
ASK WHERE { VALUES ( ?m ) { ( resource:Q90 ) ( resource:Q585 ) } . resource:Q16205080 property:P840 ?m }
Teenage Mutant Ninja Turtles (1987 TV series) (season 7)
action is_in
entity prev_answer
action find
entity Teenage Mutant Ninja Turtles (1987 TV series) (season 7)
relation narrative location
['Teenage Mutant Ninja Turtles (1987 TV series) (season 7)', 'narrative location', 'Paris'] ['Teenage Mutant Ninja Turtles (1987 TV series) (season 7)', 'narrative location', 'Oslo']
ASK WHERE { VALUES ( ?m ) { ( resource:Paris ) ( resource:Oslo ) } . resource:Teenage_Mutant_Ninja_Turtles_(1987_TV_series)_(season_7) property:narrative_location ?m }
[]
television program
SYSTEM
YES
(Q16205080,P840,Q90) (Q16205080,P840,Q585)
action is_in
entity prev_answer
action find
entity Q16205080
relation P840
[ANSWER]
['Q16205080', 'P840', 'Q90'] ['Q16205080', 'P840', 'Q585']
ASK WHERE { VALUES ( ?m ) { ( resource:Q90 ) ( resource:Q585 ) } . resource:Q16205080 property:P840 ?m }
Yes
action is_in
entity prev_answer
action find
entity Teenage Mutant Ninja Turtles (1987 TV series) (season 7)
relation narrative location
['Teenage Mutant Ninja Turtles (1987 TV series) (season 7)', 'narrative location', 'Paris'] ['Teenage Mutant Ninja Turtles (1987 TV series) (season 7)', 'narrative location', 'Oslo']
ASK WHERE { VALUES ( ?m ) { ( resource:Paris ) ( resource:Oslo ) } . resource:Teenage_Mutant_Ninja_Turtles_(1987_TV_series)_(season_7) property:narrative_location ?m }
[]