Simple Question (Direct)
Simple Question
Q768867
P140
Q879146
USER
What is the religious affiliation of Augustinus Frotz ?
(Q768867,P140,c(Q879146))
action filter_type
action find
entity Q768867
relation P140
type Q879146
['Q768867', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?q WHERE { resource:Q768867 property:P140 ?q . ?q rdf:type ontology:Q879146 }
Augustinus Frotz
action filter_type
action find
entity Augustinus Frotz
relation religion
type Christian denomination
['Augustinus Frotz', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?q WHERE { resource:Augustinus_Frotz property:religion ?q . ?q rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q768867,P140,c(Q879146))
action filter_type
action find
entity Q768867
relation P140
type Q879146
The religious affiliation of Augustinus Frotz is a [ANSWER]
['Q768867', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?q WHERE { resource:Q768867 property:P140 ?q . ?q rdf:type ontology:Q879146 }
Roman Catholic Church
The religious affiliation of Augustinus Frotz is a Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Augustinus Frotz
relation religion
type Christian denomination
['Augustinus Frotz', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?q WHERE { resource:Augustinus_Frotz property:religion ?q . ?q rdf:type ontology:Christian_denomination }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q768867
P106
Q12737077
USER
Which occupations have that person as his/her 's career ?
(Q9592,P106,c(Q12737077))
action filter_type
action find
entity Q768867
relation P106
type Q12737077
['Q9592', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q768867 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Augustinus Frotz
action filter_type
action find
entity Augustinus Frotz
relation occupation
type occupation
['Roman Catholic Church', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Augustinus_Frotz property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q250867 Q1234713
SYSTEM
Catholic priest, theologian
Q250867 Q1234713
(Q9592,P106,c(Q12737077))
action filter_type
action find
entity Q768867
relation P106
type Q12737077
[ANSWERS] have that person as his/her 's career
['Q9592', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q768867 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Catholic priest theologian
Catholic priest and theologian have that person as his/her 's career
Catholic priest theologian
action filter_type
action find
entity Augustinus Frotz
relation occupation
type occupation
['Roman Catholic Church', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Augustinus_Frotz property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q543219 Q1234713
P425
Q1047113
USER
Which special fields have theologian or pharmacy technician as the associated fields of occupation ?
OR((Q1234713,P425,c(Q1047113)), (Q543219,P425,c(Q1047113)))
action filter_type
action union
action find
entity Q1234713
relation P425
action find
entity Q543219
relation P425
type Q1047113
{'OR': [['Q1234713', 'P425', {'concept': 'Q1047113'}], ['Q543219', 'P425', {'concept': 'Q1047113'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?k ) { ( resource:Q1234713 ) ( resource:Q543219 ) } . ?k property:P425 ?x } . ?x rdf:type ontology:Q1047113 }
pharmacy technician theologian
action filter_type
action union
action find
entity theologian
relation field of this occupation
action find
entity pharmacy technician
relation field of this occupation
type special field
{'OR': [['theologian', 'field of this occupation', {'concept': 'special field'}], ['pharmacy technician', 'field of this occupation', {'concept': 'special field'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?k ) { ( resource:theologian ) ( resource:pharmacy_technician ) } . ?k property:field_of_this_occupation ?x } . ?x rdf:type ontology:special_field }
[]
special field
Q614304 Q34178
SYSTEM
pharmacy, theology
Q614304 Q34178
OR((Q1234713,P425,c(Q1047113)), (Q543219,P425,c(Q1047113)))
action filter_type
action union
action find
entity Q1234713
relation P425
action find
entity Q543219
relation P425
type Q1047113
[ANSWERS] have theologian or pharmacy technician as the associated fields of occupation
{'OR': [['Q1234713', 'P425', {'concept': 'Q1047113'}], ['Q543219', 'P425', {'concept': 'Q1047113'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?k ) { ( resource:Q1234713 ) ( resource:Q543219 ) } . ?k property:P425 ?x } . ?x rdf:type ontology:Q1047113 }
pharmacy theology
Pharmacy and theology have theologian or pharmacy technician as the associated fields of occupation
pharmacy theology
action filter_type
action union
action find
entity theologian
relation field of this occupation
action find
entity pharmacy technician
relation field of this occupation
type special field
{'OR': [['theologian', 'field of this occupation', {'concept': 'special field'}], ['pharmacy technician', 'field of this occupation', {'concept': 'special field'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?k ) { ( resource:theologian ) ( resource:pharmacy_technician ) } . ?k property:field_of_this_occupation ?x } . ?x rdf:type ontology:special_field }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P1313
Q895526
USER
What is the authority organ held by United States of America ?
(Q30,P1313,c(Q895526))
action filter_type
action find
entity Q30
relation P1313
type Q895526
['Q30', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?o WHERE { resource:Q30 property:P1313 ?o . ?o rdf:type ontology:Q895526 }
United States of America
action filter_type
action find
entity United States of America
relation office held by head of government
type authority organ
['United States of America', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?o WHERE { resource:United_States_of_America property:office_held_by_head_of_government ?o . ?o rdf:type ontology:authority_organ }
[]
authority organ
Q11696
SYSTEM
President of the United States of America
Q11696
(Q30,P1313,c(Q895526))
action filter_type
action find
entity Q30
relation P1313
type Q895526
The authority organ held by United States of America is the [ANSWER]
['Q30', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?o WHERE { resource:Q30 property:P1313 ?o . ?o rdf:type ontology:Q895526 }
President of the United States of America
The authority organ held by United States of America is the President of the United States of America
President of the United States of America
action filter_type
action find
entity United States of America
relation office held by head of government
type authority organ
['United States of America', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?o WHERE { resource:United_States_of_America property:office_held_by_head_of_government ?o . ?o rdf:type ontology:authority_organ }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q919050
Q895526
USER
And what about Molina de Aragón?
(Q919050,P1313,c(Q895526))
action filter_type
action find
entity Q919050
relation P1313
type Q895526
['Q919050', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q895526 . resource:Q919050 property:P1313 ?m }
Molina de Aragón
action filter_type
action find
entity Molina de Aragón
relation office held by head of government
type authority organ
['Molina de Aragón', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:authority_organ . resource:Molina_de_Aragón property:office_held_by_head_of_government ?m }
[]
authority organ
Q26701000
SYSTEM
mayor of Molina de Aragón
Q26701000
(Q919050,P1313,c(Q895526))
action filter_type
action find
entity Q919050
relation P1313
type Q895526
[ANSWER]
['Q919050', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q895526 . resource:Q919050 property:P1313 ?m }
mayor of Molina de Aragón
mayor of Molina de Aragón
action filter_type
action find
entity Molina de Aragón
relation office held by head of government
type authority organ
['Molina de Aragón', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:authority_organ . resource:Molina_de_Aragón property:office_held_by_head_of_government ?m }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26699845 Q26701000
P17
Q15617994
USER
Which administrative territories are mayor of Molina de Aragón or mayor of Oropesa a part of ?
OR((Q26701000,P17,c(Q15617994)), (Q26699845,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26701000
relation P17
action find
entity Q26699845
relation P17
type Q15617994
{'OR': [['Q26701000', 'P17', {'concept': 'Q15617994'}], ['Q26699845', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?u ) { ( resource:Q26701000 ) ( resource:Q26699845 ) } . ?u property:P17 ?e } . ?e rdf:type ontology:Q15617994 }
mayor of Oropesa mayor of Molina de Aragón
action filter_type
action union
action find
entity mayor of Molina de Aragón
relation country
action find
entity mayor of Oropesa
relation country
type designation for an administrative territorial entity
{'OR': [['mayor of Molina de Aragón', 'country', {'concept': 'designation for an administrative territorial entity'}], ['mayor of Oropesa', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?u ) { ( resource:mayor_of_Molina_de_Aragón ) ( resource:mayor_of_Oropesa ) } . ?u property:country ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
OR((Q26701000,P17,c(Q15617994)), (Q26699845,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26701000
relation P17
action find
entity Q26699845
relation P17
type Q15617994
[ANSWER] is mayor of Molina de Aragón or mayor of Oropesa a part of
{'OR': [['Q26701000', 'P17', {'concept': 'Q15617994'}], ['Q26699845', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?u ) { ( resource:Q26701000 ) ( resource:Q26699845 ) } . ?u property:P17 ?e } . ?e rdf:type ontology:Q15617994 }
Spain
Spain is mayor of Molina de Aragón or mayor of Oropesa a part of
Spain
action filter_type
action union
action find
entity mayor of Molina de Aragón
relation country
action find
entity mayor of Oropesa
relation country
type designation for an administrative territorial entity
{'OR': [['mayor of Molina de Aragón', 'country', {'concept': 'designation for an administrative territorial entity'}], ['mayor of Oropesa', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?u ) { ( resource:mayor_of_Molina_de_Aragón ) ( resource:mayor_of_Oropesa ) } . ?u property:country ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q26699845
P17
Q15617994
USER
How many administrative territories are mayor of Oropesa present in ?
(Q26699845,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26699845
relation P17
type Q15617994
['Q26699845', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { resource:Q26699845 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
mayor of Oropesa
action count
action filter_type
action find
entity mayor of Oropesa
relation country
type designation for an administrative territorial entity
['mayor of Oropesa', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { resource:mayor_of_Oropesa property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q29
(Q26699845,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26699845
relation P17
type Q15617994
[ANSWER]
['Q26699845', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { resource:Q26699845 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Spain
1
action count
action filter_type
action find
entity mayor of Oropesa
relation country
type designation for an administrative territorial entity
['mayor of Oropesa', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { resource:mayor_of_Oropesa property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q213566
P17
Q15617994
USER
And also tell me about Saint-Ouen-la-Rouërie?
(Q213566,P17,c(Q15617994))
action count
action filter_type
action find
entity Q213566
relation P17
type Q15617994
['Q213566', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { ?k rdf:type ontology:Q15617994 . resource:Q213566 property:P17 ?k }
Saint-Ouen-la-Rouërie
action count
action filter_type
action find
entity Saint-Ouen-la-Rouërie
relation country
type designation for an administrative territorial entity
['Saint-Ouen-la-Rouërie', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Saint-Ouen-la-Rouërie property:country ?k }
[]
designation for an administrative territorial entity
SYSTEM
1
Q142
(Q213566,P17,c(Q15617994))
action count
action filter_type
action find
entity Q213566
relation P17
type Q15617994
[ANSWER]
['Q213566', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { ?k rdf:type ontology:Q15617994 . resource:Q213566 property:P17 ?k }
France
1
action count
action filter_type
action find
entity Saint-Ouen-la-Rouërie
relation country
type designation for an administrative territorial entity
['Saint-Ouen-la-Rouërie', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Saint-Ouen-la-Rouërie property:country ?k }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q5254721
Q15617994
USER
And how about Delta Psi, Alpha Chapter building?
(Q5254721,P17,c(Q15617994))
action count
action filter_type
action find
entity Q5254721
relation P17
type Q15617994
['Q5254721', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:Q5254721 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Delta Psi, Alpha Chapter building
action count
action filter_type
action find
entity Delta Psi, Alpha Chapter building
relation country
type designation for an administrative territorial entity
['Delta Psi, Alpha Chapter building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:Delta_Psi,_Alpha_Chapter_building property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q5254721,P17,c(Q15617994))
action count
action filter_type
action find
entity Q5254721
relation P17
type Q15617994
[ANSWER]
['Q5254721', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:Q5254721 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Delta Psi, Alpha Chapter building
relation country
type designation for an administrative territorial entity
['Delta Psi, Alpha Chapter building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:Delta_Psi,_Alpha_Chapter_building property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11696
P163
Q17335294
USER
Which coat of arms has President of the United States of America as its flag ?
(Q11696,P163,c(Q17335294))
action filter_type
action find
entity Q11696
relation P163
type Q17335294
['Q11696', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?z WHERE { resource:Q11696 property:P163 ?z . ?z rdf:type ontology:Q17335294 }
President of the United States of America
action filter_type
action find
entity President of the United States of America
relation flag
type flag or coat of arms
['President of the United States of America', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?z WHERE { resource:President_of_the_United_States_of_America property:flag ?z . ?z rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q2975851
SYSTEM
Flag of the President of the United States
Q2975851
(Q11696,P163,c(Q17335294))
action filter_type
action find
entity Q11696
relation P163
type Q17335294
The [ANSWER] has President of the United States of America as its flag
['Q11696', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?z WHERE { resource:Q11696 property:P163 ?z . ?z rdf:type ontology:Q17335294 }
Flag of the President of the United States
The Flag of the President of the United States has President of the United States of America as its flag
Flag of the President of the United States
action filter_type
action find
entity President of the United States of America
relation flag
type flag or coat of arms
['President of the United States of America', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?z WHERE { resource:President_of_the_United_States_of_America property:flag ?z . ?z rdf:type ontology:flag_or_coat_of_arms }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q879146 Q102496 Q44539
USER
How many Christian denominations are atleast 1 parishes or temples a component of ?
(c(Q102496)|c(Q44539),P361,c(Q879146))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P361
type Q879146
type Q102496
action find_reverse_tuple_counts
relation P361
type Q879146
type Q44539
value 1
[[{'concept': 'Q102496'}, {'concept': 'Q44539'}], 'P361', {'concept': 'Q879146'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?w ) AS ?b ) WHERE { { ?w property:P361 ?z . ?z rdf:type ontology:Q879146 . ?w rdf:type ontology:Q102496 } UNION { ?w property:P361 ?z . ?z rdf:type ontology:Q879146 . ?w rdf:type ontology:Q44539 } } GROUP BY ?z } . FILTER ( ?b >= 1 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation part of
type Christian denomination
type parish
action find_reverse_tuple_counts
relation part of
type Christian denomination
type temple
value 1
[[{'concept': 'parish'}, {'concept': 'temple'}], 'part of', {'concept': 'Christian denomination'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?w ) AS ?b ) WHERE { { ?w property:part_of ?z . ?z rdf:type ontology:Christian_denomination . ?w rdf:type ontology:parish } UNION { ?w property:part_of ?z . ?z rdf:type ontology:Christian_denomination . ?w rdf:type ontology:temple } } GROUP BY ?z } . FILTER ( ?b >= 1 ) }
[]
Christian denomination parish temple
SYSTEM
3
Q682443 Q749243 Q9592
(c(Q102496)|c(Q44539),P361,c(Q879146))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P361
type Q879146
type Q102496
action find_reverse_tuple_counts
relation P361
type Q879146
type Q44539
value 1
[ANSWER]
[[{'concept': 'Q102496'}, {'concept': 'Q44539'}], 'P361', {'concept': 'Q879146'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?w ) AS ?b ) WHERE { { ?w property:P361 ?z . ?z rdf:type ontology:Q879146 . ?w rdf:type ontology:Q102496 } UNION { ?w property:P361 ?z . ?z rdf:type ontology:Q879146 . ?w rdf:type ontology:Q44539 } } GROUP BY ?z } . FILTER ( ?b >= 1 ) }
Episcopal Church Church of Sweden Roman Catholic Church
3
action count
action atleast
action union
action find_reverse_tuple_counts
relation part of
type Christian denomination
type parish
action find_reverse_tuple_counts
relation part of
type Christian denomination
type temple
value 1
[[{'concept': 'parish'}, {'concept': 'temple'}], 'part of', {'concept': 'Christian denomination'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?w ) AS ?b ) WHERE { { ?w property:part_of ?z . ?z rdf:type ontology:Christian_denomination . ?w rdf:type ontology:parish } UNION { ?w property:part_of ?z . ?z rdf:type ontology:Christian_denomination . ?w rdf:type ontology:temple } } GROUP BY ?z } . FILTER ( ?b >= 1 ) }
[]