Simple Question (Direct)
Simple Question
Q15068833
P512
Q3412758
USER
What is the name of the degree held by Boris Knorre ?
(Q15068833,P512,c(Q3412758))
action filter_type
action find
entity Q15068833
relation P512
type Q3412758
['Q15068833', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q3412758 . resource:Q15068833 property:P512 ?k }
Boris Knorre
action filter_type
action find
entity Boris Knorre
relation academic degree
type qualification
['Boris Knorre', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:qualification . resource:Boris_Knorre property:academic_degree ?k }
[]
qualification
Q19603972
SYSTEM
PhD in Philosophical Sciences
Q19603972
(Q15068833,P512,c(Q3412758))
action filter_type
action find
entity Q15068833
relation P512
type Q3412758
The name of the degree held by Boris Knorre is a [ANSWER]
['Q15068833', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q3412758 . resource:Q15068833 property:P512 ?k }
PhD in Philosophical Sciences
The name of the degree held by Boris Knorre is a PhD in Philosophical Sciences
PhD in Philosophical Sciences
action filter_type
action find
entity Boris Knorre
relation academic degree
type qualification
['Boris Knorre', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:qualification . resource:Boris_Knorre property:academic_degree ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15068833
P21
Q290
USER
Which sex does Boris Knorre belong to ?
(Q15068833,P21,c(Q290))
action filter_type
action find
entity Q15068833
relation P21
type Q290
['Q15068833', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q15068833 property:P21 ?e . ?e rdf:type ontology:Q290 }
Boris Knorre
action filter_type
action find
entity Boris Knorre
relation gender
type sex
['Boris Knorre', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Boris_Knorre property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15068833,P21,c(Q290))
action filter_type
action find
entity Q15068833
relation P21
type Q290
Boris Knorre belongs to [ANSWER]
['Q15068833', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q15068833 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
Boris Knorre belongs to male
male
action filter_type
action find
entity Boris Knorre
relation gender
type sex
['Boris Knorre', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Boris_Knorre property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P138
Q7946
USER
Which minerals have that sex as their namesake ?
(c(Q7946),P138,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q7946
[{'concept': 'Q7946'}, 'P138', 'Q6581097']
SELECT DISTINCT ?s WHERE { ?s property:P138 resource:Q6581097 . ?s rdf:type ontology:Q7946 }
male
action filter_type
action find_reverse
entity male
relation named after
type mineral
[{'concept': 'mineral'}, 'named after', 'male']
SELECT DISTINCT ?s WHERE { ?s property:named_after resource:male . ?s rdf:type ontology:mineral }
[]
mineral
Q19861020 Q19861231 Q4006570
SYSTEM
mendeleevite-(Ce), reynoldsite, urusovite
Q19861020 Q18375263 Q19862060 Q19861231 Q4006570 Q3565842 Q19833301
(c(Q7946),P138,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q7946
[ANSWERS] have that sex as their namesake
[{'concept': 'Q7946'}, 'P138', 'Q6581097']
SELECT DISTINCT ?s WHERE { ?s property:P138 resource:Q6581097 . ?s rdf:type ontology:Q7946 }
mendeleevite-(Ce) billwiseite witzkeite reynoldsite urusovite zirkelite carlosbarbosaite
Mendeleevite-(Ce), reynoldsite and urusovite have that sex as their namesake
mendeleevite-(Ce) reynoldsite urusovite
action filter_type
action find_reverse
entity male
relation named after
type mineral
[{'concept': 'mineral'}, 'named after', 'male']
SELECT DISTINCT ?s WHERE { ?s property:named_after resource:male . ?s rdf:type ontology:mineral }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2754039
P138
Q486972 Q7946
USER
How many human settlements are the etymology of greater number of minerals than Storängen ?
(c(Q7946),P138,c(Q486972))
action count
action greater
action find_reverse_tuple_counts
relation P138
type Q486972
type Q7946
action count
action filter_type
action find
entity Q2754039
relation P138
type Q486972
[{'concept': 'Q7946'}, 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:P138 ?i . ?i rdf:type ontology:Q486972 . ?y rdf:type ontology:Q7946 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h rdf:type ontology:Q486972 . resource:Q2754039 property:P138 ?h } } . FILTER ( ?f > ?o ) }
Storängen
action count
action greater
action find_reverse_tuple_counts
relation named after
type human settlement
type mineral
action count
action filter_type
action find
entity Storängen
relation named after
type human settlement
[{'concept': 'mineral'}, 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:named_after ?i . ?i rdf:type ontology:human_settlement . ?y rdf:type ontology:mineral } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h rdf:type ontology:human_settlement . resource:Storängen property:named_after ?h } } . FILTER ( ?f > ?o ) }
[]
human settlement mineral
SYSTEM
2
Q3163859 Q2130361
(c(Q7946),P138,c(Q486972))
action count
action greater
action find_reverse_tuple_counts
relation P138
type Q486972
type Q7946
action count
action filter_type
action find
entity Q2754039
relation P138
type Q486972
[ANSWER]
[{'concept': 'Q7946'}, 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:P138 ?i . ?i rdf:type ontology:Q486972 . ?y rdf:type ontology:Q7946 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h rdf:type ontology:Q486972 . resource:Q2754039 property:P138 ?h } } . FILTER ( ?f > ?o ) }
Fornovolasco Ramsbeck
2
action count
action greater
action find_reverse_tuple_counts
relation named after
type human settlement
type mineral
action count
action filter_type
action find
entity Storängen
relation named after
type human settlement
[{'concept': 'mineral'}, 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:named_after ?i . ?i rdf:type ontology:human_settlement . ?y rdf:type ontology:mineral } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h rdf:type ontology:human_settlement . resource:Storängen property:named_after ?h } } . FILTER ( ?f > ?o ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1686522
P138
Q486972 Q7946
USER
And what about Wehringhausen?
(c(Q7946),P138,c(Q486972))
action count
action greater
action find_reverse_tuple_counts
relation P138
type Q486972
type Q7946
action count
action filter_type
action find
entity Q1686522
relation P138
type Q486972
[{'concept': 'Q7946'}, 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { FILTER ( ?o > ?x ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k rdf:type ontology:Q486972 . resource:Q1686522 property:P138 ?k } } . { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ontology:Q7946 . ?a rdf:type ontology:Q486972 . ?p property:P138 ?a } GROUP BY ?a } }
Wehringhausen
action count
action greater
action find_reverse_tuple_counts
relation named after
type human settlement
type mineral
action count
action filter_type
action find
entity Wehringhausen
relation named after
type human settlement
[{'concept': 'mineral'}, 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { FILTER ( ?o > ?x ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k rdf:type ontology:human_settlement . resource:Wehringhausen property:named_after ?k } } . { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ontology:mineral . ?a rdf:type ontology:human_settlement . ?p property:named_after ?a } GROUP BY ?a } }
[]
human settlement mineral
SYSTEM
2
Q3163859 Q2130361
(c(Q7946),P138,c(Q486972))
action count
action greater
action find_reverse_tuple_counts
relation P138
type Q486972
type Q7946
action count
action filter_type
action find
entity Q1686522
relation P138
type Q486972
[ANSWER]
[{'concept': 'Q7946'}, 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { FILTER ( ?o > ?x ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k rdf:type ontology:Q486972 . resource:Q1686522 property:P138 ?k } } . { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ontology:Q7946 . ?a rdf:type ontology:Q486972 . ?p property:P138 ?a } GROUP BY ?a } }
Fornovolasco Ramsbeck
2
action count
action greater
action find_reverse_tuple_counts
relation named after
type human settlement
type mineral
action count
action filter_type
action find
entity Wehringhausen
relation named after
type human settlement
[{'concept': 'mineral'}, 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { FILTER ( ?o > ?x ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k rdf:type ontology:human_settlement . resource:Wehringhausen property:named_after ?k } } . { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ontology:mineral . ?a rdf:type ontology:human_settlement . ?p property:named_after ?a } GROUP BY ?a } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q82955
P425
Q3769299
USER
Which human behaviour is associated with the field of occupation politician ?
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?u WHERE { resource:Q82955 property:P425 ?u . ?u rdf:type ontology:Q3769299 }
politician
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?u WHERE { resource:politician property:field_of_this_occupation ?u . ?u rdf:type ontology:human_behaviour }
[]
human behaviour
Q7163
SYSTEM
politics
Q7163
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
The [ANSWER] is associated with the field of occupation politician
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?u WHERE { resource:Q82955 property:P425 ?u . ?u rdf:type ontology:Q3769299 }
politics
The politics is associated with the field of occupation politician
politics
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?u WHERE { resource:politician property:field_of_this_occupation ?u . ?u rdf:type ontology:human_behaviour }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7163
P361
Q43229
USER
What is a part of that human behaviour ?
(c(Q43229),P361,Q7163)
action filter_type
action find_reverse
entity Q7163
relation P361
type Q43229
[{'concept': 'Q43229'}, 'P361', 'Q7163']
SELECT DISTINCT ?a WHERE { ?a property:P361 resource:Q7163 . ?a rdf:type ontology:Q43229 }
politics
action filter_type
action find_reverse
entity politics
relation part of
type organization
[{'concept': 'organization'}, 'part of', 'politics']
SELECT DISTINCT ?a WHERE { ?a property:part_of resource:politics . ?a rdf:type ontology:organization }
[]
organization
Q837416
SYSTEM
coalition government
Q837416
(c(Q43229),P361,Q7163)
action filter_type
action find_reverse
entity Q7163
relation P361
type Q43229
A part of that human behaviour is a [ANSWER]
[{'concept': 'Q43229'}, 'P361', 'Q7163']
SELECT DISTINCT ?a WHERE { ?a property:P361 resource:Q7163 . ?a rdf:type ontology:Q43229 }
coalition government
A part of that human behaviour is a coalition government
coalition government
action filter_type
action find_reverse
entity politics
relation part of
type organization
[{'concept': 'organization'}, 'part of', 'politics']
SELECT DISTINCT ?a WHERE { ?a property:part_of resource:politics . ?a rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q8261 Q7163
P136
Q2342494
USER
Which collectables have politics and novel as their category ?
AND((c(Q2342494),P136,Q7163), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q7163
relation P136
action find_reverse
entity Q8261
relation P136
type Q2342494
{'AND': [[{'concept': 'Q2342494'}, 'P136', 'Q7163'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?i WHERE { ?i property:P136 resource:Q7163 . ?i property:P136 resource:Q8261 . ?i rdf:type ontology:Q2342494 }
novel politics
action filter_type
action intersection
action find_reverse
entity politics
relation genre
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'genre', 'politics'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?i WHERE { ?i property:genre resource:politics . ?i property:genre resource:novel . ?i rdf:type ontology:collectable }
[]
collectable
Q7239066 Q1966939 Q7720107 Q5543223 Q3792993 Q7805385 Q2738674
SYSTEM
Prayers for the Assassin, The State Counsellor, The Brief and Frightening Reign of Phil, George Passant, The Gospel According to Larry, Time of Hope, Vineland
Q7239066 Q1966939 Q7720107 Q5543223 Q3792993 Q7805385 Q2738674
AND((c(Q2342494),P136,Q7163), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q7163
relation P136
action find_reverse
entity Q8261
relation P136
type Q2342494
[ANSWERS]
{'AND': [[{'concept': 'Q2342494'}, 'P136', 'Q7163'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?i WHERE { ?i property:P136 resource:Q7163 . ?i property:P136 resource:Q8261 . ?i rdf:type ontology:Q2342494 }
Prayers for the Assassin The State Counsellor The Brief and Frightening Reign of Phil George Passant The Gospel According to Larry Time of Hope Vineland
The Gospel according to Larry, Time of Hope and Vineland have politics and novel as their category
Prayers for the Assassin The State Counsellor The Brief and Frightening Reign of Phil George Passant The Gospel According to Larry Time of Hope Vineland
action filter_type
action intersection
action find_reverse
entity politics
relation genre
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'genre', 'politics'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?i WHERE { ?i property:genre resource:politics . ?i property:genre resource:novel . ?i rdf:type ontology:collectable }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7805385
P495
Q15617994
USER
Where did that collectable originate ?
(Q7805385,P495,c(Q15617994))
action filter_type
action find
entity Q7805385
relation P495
type Q15617994
['Q7805385', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q7805385 property:P495 ?v }
Time of Hope
action filter_type
action find
entity Time of Hope
relation country of origin
type designation for an administrative territorial entity
['Time of Hope', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Time_of_Hope property:country_of_origin ?v }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q7720107
SYSTEM
Did you mean The Brief and Frightening Reign of Phil ?
Q7239066 Q1966939 Q7720107 Q5543223 Q3792993 Q7805385 Q2738674
(Q7239066,P495,c(Q15617994)) (Q1966939,P495,c(Q15617994)) (Q7720107,P495,c(Q15617994)) (Q5543223,P495,c(Q15617994)) (Q3792993,P495,c(Q15617994)) (Q7805385,P495,c(Q15617994)) (Q2738674,P495,c(Q15617994))
[ANSWER]
['Q7239066', 'P495', {'concept': 'Q15617994'}] ['Q1966939', 'P495', {'concept': 'Q15617994'}] ['Q7720107', 'P495', {'concept': 'Q15617994'}] ['Q5543223', 'P495', {'concept': 'Q15617994'}] ['Q3792993', 'P495', {'concept': 'Q15617994'}] ['Q7805385', 'P495', {'concept': 'Q15617994'}] ['Q2738674', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q7805385 property:P495 ?v }
Prayers for the Assassin The State Counsellor The Brief and Frightening Reign of Phil George Passant The Gospel According to Larry Time of Hope Vineland
Did you mean The Brief and Frightening Reign of Phil ?
The Brief and Frightening Reign of Phil
['Prayers for the Assassin', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The State Counsellor', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Brief and Frightening Reign of Phil', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['George Passant', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Gospel According to Larry', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Time of Hope', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Vineland', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Time_of_Hope property:country_of_origin ?v }
[]
Simple Question (Coreferenced)
USER
No, I meant Time of Hope. Could you tell me the answer for that?
(Q7805385,P495,c(Q15617994))
Q7805385
['Q7805385', 'P495', {'concept': 'Q15617994'}]
['Time of Hope', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q145
SYSTEM
United Kingdom
Q145
(Q7805385,P495,c(Q15617994))
action filter_type
action find
entity Q7805385
relation P495
type Q15617994
That collectable originated in [ANSWER]
['Q7805385', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q7805385 property:P495 ?v }
United Kingdom
That collectable originated in United Kingdom
United Kingdom
action filter_type
action find
entity Time of Hope
relation country of origin
type designation for an administrative territorial entity
['Time of Hope', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Time_of_Hope property:country_of_origin ?v }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q145 Q183 Q4215289
P530
Q1048835
USER
Is United Kingdom known to have diplomatic connections with Germany and Karlivka ?
(Q145,P530,Q183) (Q145,P530,Q4215289)
action is_in
entity Q145
action intersection
action find_reverse
entity Q183
relation P530
action find_reverse
entity Q4215289
relation P530
['Q145', 'P530', 'Q183'] ['Q145', 'P530', 'Q4215289']
ASK WHERE { resource:Q145 property:P530 resource:Q4215289 . resource:Q145 property:P530 resource:Q183 }
United Kingdom Germany Karlivka
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Germany
relation diplomatic relation
action find_reverse
entity Karlivka
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Germany'] ['United Kingdom', 'diplomatic relation', 'Karlivka']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Karlivka . resource:United_Kingdom property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q145,P530,Q183) (Q145,P530,Q4215289)
action is_in
entity Q145
action intersection
action find_reverse
entity Q183
relation P530
action find_reverse
entity Q4215289
relation P530
[ANSWER]
['Q145', 'P530', 'Q183'] ['Q145', 'P530', 'Q4215289']
ASK WHERE { resource:Q145 property:P530 resource:Q4215289 . resource:Q145 property:P530 resource:Q183 }
YES and NO respectively
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Germany
relation diplomatic relation
action find_reverse
entity Karlivka
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Germany'] ['United Kingdom', 'diplomatic relation', 'Karlivka']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Karlivka . resource:United_Kingdom property:diplomatic_relation resource:Germany }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3233775 Q2738674
P495
Q15617994
USER
Which administrative territories are the origins of Vineland or Bad Liaisons ?
OR((Q2738674,P495,c(Q15617994)), (Q3233775,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q2738674
relation P495
action find
entity Q3233775
relation P495
type Q15617994
{'OR': [['Q2738674', 'P495', {'concept': 'Q15617994'}], ['Q3233775', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q2738674 property:P495 ?h } UNION { resource:Q3233775 property:P495 ?h } } . ?h rdf:type ontology:Q15617994 }
Bad Liaisons Vineland
action filter_type
action union
action find
entity Vineland
relation country of origin
action find
entity Bad Liaisons
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Vineland', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Bad Liaisons', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Vineland property:country_of_origin ?h } UNION { resource:Bad_Liaisons property:country_of_origin ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q30
SYSTEM
France, United States of America
Q142 Q30
OR((Q2738674,P495,c(Q15617994)), (Q3233775,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q2738674
relation P495
action find
entity Q3233775
relation P495
type Q15617994
[ANSWERS] are the origins of Vineland or Bad Liaisons
{'OR': [['Q2738674', 'P495', {'concept': 'Q15617994'}], ['Q3233775', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q2738674 property:P495 ?h } UNION { resource:Q3233775 property:P495 ?h } } . ?h rdf:type ontology:Q15617994 }
France United States of America
France and United States of America are the origins of Vineland or Bad Liaisons
France United States of America
action filter_type
action union
action find
entity Vineland
relation country of origin
action find
entity Bad Liaisons
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Vineland', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Bad Liaisons', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Vineland property:country_of_origin ?h } UNION { resource:Bad_Liaisons property:country_of_origin ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with approximately 27 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 27
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?q = 27 ) . { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?q ) WHERE { ?l property:P530 ?w . ?l rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?l } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 27
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?q = 27 ) . { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?q ) WHERE { ?l property:diplomatic_relation ?w . ?l rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 27
[ANSWERS] have a diplomatic relationship with approximately 27 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?q = 27 ) . { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?q ) WHERE { ?l property:P530 ?w . ?l rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?l } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have a diplomatic relationship with approximately 27 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 27
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?q = 27 ) . { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?q ) WHERE { ?l property:diplomatic_relation ?w . ?l rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q35 Q16 Q40
P30
Q2221906
USER
Which geographic locations are those political territories located in ?
(Q35,P30,c(Q2221906)) (Q16,P30,c(Q2221906)) (Q40,P30,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P30
type Q2221906
['Q35', 'P30', {'concept': 'Q2221906'}] ['Q16', 'P30', {'concept': 'Q2221906'}] ['Q40', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { ?k property:P30 ?q . VALUES ( ?k ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . ?q rdf:type ontology:Q2221906 }
Denmark Canada Austria
action filter_type
action find
entity prev_answer
relation continent
type geographic location
['Denmark', 'continent', {'concept': 'geographic location'}] ['Canada', 'continent', {'concept': 'geographic location'}] ['Austria', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { ?k property:continent ?q . VALUES ( ?k ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . ?q rdf:type ontology:geographic_location }
[]
geographic location
Q46 Q49 Q46
SYSTEM
Europe for 1st, 3rd, North America for 2nd
Q46 Q49 Q46
(Q35,P30,c(Q2221906)) (Q16,P30,c(Q2221906)) (Q40,P30,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P30
type Q2221906
[ANSWERS]
['Q35', 'P30', {'concept': 'Q2221906'}] ['Q16', 'P30', {'concept': 'Q2221906'}] ['Q40', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { ?k property:P30 ?q . VALUES ( ?k ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . ?q rdf:type ontology:Q2221906 }
Europe North America Europe
Those political territories are located in Europe, North America and Europe
Europe North America Europe
action filter_type
action find
entity prev_answer
relation continent
type geographic location
['Denmark', 'continent', {'concept': 'geographic location'}] ['Canada', 'continent', {'concept': 'geographic location'}] ['Austria', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { ?k property:continent ?q . VALUES ( ?k ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . ?q rdf:type ontology:geographic_location }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35
P610
Q14524493
USER
Which terrain is the highest point of that political territory ?
(Q35,P610,c(Q14524493))
action filter_type
action find
entity Q35
relation P610
type Q14524493
['Q35', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?y WHERE { resource:Q35 property:P610 ?y . ?y rdf:type ontology:Q14524493 }
Denmark
action filter_type
action find
entity Denmark
relation highest point
type terrain
['Denmark', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?y WHERE { resource:Denmark property:highest_point ?y . ?y rdf:type ontology:terrain }
[]
terrain
Clarification for simple ques.
Q35
SYSTEM
Did you mean Denmark ?
Q46 Q49 Q46
(Q46,P610,c(Q14524493)) (Q49,P610,c(Q14524493)) (Q46,P610,c(Q14524493))
[ANSWER]
['Q46', 'P610', {'concept': 'Q14524493'}] ['Q49', 'P610', {'concept': 'Q14524493'}] ['Q46', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?y WHERE { resource:Q35 property:P610 ?y . ?y rdf:type ontology:Q14524493 }
Europe North America Europe
Did you mean Denmark ?
Denmark
['Europe', 'highest point', {'concept': 'terrain'}] ['North America', 'highest point', {'concept': 'terrain'}] ['Europe', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?y WHERE { resource:Denmark property:highest_point ?y . ?y rdf:type ontology:terrain }
[]
Simple Question (Coreferenced)
USER
Yes
(Q35,P610,c(Q14524493))
['Q35', 'P610', {'concept': 'Q14524493'}]
['Denmark', 'highest point', {'concept': 'terrain'}]
[]
Q689106
SYSTEM
Møllehøj
Q689106
(Q35,P610,c(Q14524493))
action filter_type
action find
entity Q35
relation P610
type Q14524493
[ANSWER] is the highest point of that political territory
['Q35', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?y WHERE { resource:Q35 property:P610 ?y . ?y rdf:type ontology:Q14524493 }
Møllehøj
Møllehøj is the highest point of that political territory
Møllehøj
action filter_type
action find
entity Denmark
relation highest point
type terrain
['Denmark', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?y WHERE { resource:Denmark property:highest_point ?y . ?y rdf:type ontology:terrain }
[]