Simple Question (Direct)
Simple Question
Q453571
P20
Q56061
USER
Where did the expiration of François de Neufville, duc de Villeroi occur ?
(Q453571,P20,c(Q56061))
action filter_type
action find
entity Q453571
relation P20
type Q56061
['Q453571', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q453571 property:P20 ?a . ?a rdf:type ontology:Q56061 }
François de Neufville, duc de Villeroi
action filter_type
action find
entity François de Neufville, duc de Villeroi
relation place of death
type administrative territorial entity
['François de Neufville, duc de Villeroi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:François_de_Neufville,_duc_de_Villeroi property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q453571,P20,c(Q56061))
action filter_type
action find
entity Q453571
relation P20
type Q56061
The expiration of François de Neufville , duc de Villeroi occurred [ANSWER]
['Q453571', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q453571 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Paris
The expiration of François de Neufville , duc de Villeroi occurred Paris
Paris
action filter_type
action find
entity François de Neufville, duc de Villeroi
relation place of death
type administrative territorial entity
['François de Neufville, duc de Villeroi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:François_de_Neufville,_duc_de_Villeroi property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q90
P138
Q874405
USER
Which social group is that administrative territory named after ?
(Q90,P138,c(Q874405))
action filter_type
action find
entity Q90
relation P138
type Q874405
['Q90', 'P138', {'concept': 'Q874405'}]
SELECT DISTINCT ?i WHERE { resource:Q90 property:P138 ?i . ?i rdf:type ontology:Q874405 }
Paris
action filter_type
action find
entity Paris
relation named after
type social group
['Paris', 'named after', {'concept': 'social group'}]
SELECT DISTINCT ?i WHERE { resource:Paris property:named_after ?i . ?i rdf:type ontology:social_group }
[]
social group
Q656902
SYSTEM
Parisii
Q656902
(Q90,P138,c(Q874405))
action filter_type
action find
entity Q90
relation P138
type Q874405
That administrative territory is named after [ANSWER]
['Q90', 'P138', {'concept': 'Q874405'}]
SELECT DISTINCT ?i WHERE { resource:Q90 property:P138 ?i . ?i rdf:type ontology:Q874405 }
Parisii
That administrative territory is named after Parisii
Parisii
action filter_type
action find
entity Paris
relation named after
type social group
['Paris', 'named after', {'concept': 'social group'}]
SELECT DISTINCT ?i WHERE { resource:Paris property:named_after ?i . ?i rdf:type ontology:social_group }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P137
Q874405 Q2424752
USER
How many products were managed by atleast 1 social group ?
(c(Q2424752),P137,c(Q874405))
action count
action atleast
action find_tuple_counts
relation P137
type Q2424752
type Q874405
value 1
[{'concept': 'Q2424752'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?f ) WHERE { ?a rdf:type ontology:Q2424752 . ?k rdf:type ontology:Q874405 . ?a property:P137 ?k } GROUP BY ?a } . FILTER ( ?f >= 1 ) }
action count
action atleast
action find_tuple_counts
relation operator
type product
type social group
value 1
[{'concept': 'product'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?f ) WHERE { ?a rdf:type ontology:product . ?k rdf:type ontology:social_group . ?a property:operator ?k } GROUP BY ?a } . FILTER ( ?f >= 1 ) }
[]
social group product
SYSTEM
3
Q15411579 Q163838 Q1074148
(c(Q2424752),P137,c(Q874405))
action count
action atleast
action find_tuple_counts
relation P137
type Q2424752
type Q874405
value 1
[ANSWER]
[{'concept': 'Q2424752'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?f ) WHERE { ?a rdf:type ontology:Q2424752 . ?k rdf:type ontology:Q874405 . ?a property:P137 ?k } GROUP BY ?a } . FILTER ( ?f >= 1 ) }
Lockheed Hercules W.2 Ilyushin Il-38 Sukhoi Su-29
3
action count
action atleast
action find_tuple_counts
relation operator
type product
type social group
value 1
[{'concept': 'product'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?f ) WHERE { ?a rdf:type ontology:product . ?k rdf:type ontology:social_group . ?a property:operator ?k } GROUP BY ?a } . FILTER ( ?f >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90
P180
Q11060274
USER
Which prints express Paris ?
(c(Q11060274),P180,Q90)
action filter_type
action find_reverse
entity Q90
relation P180
type Q11060274
[{'concept': 'Q11060274'}, 'P180', 'Q90']
SELECT DISTINCT ?c WHERE { ?c property:P180 resource:Q90 . ?c rdf:type ontology:Q11060274 }
Paris
action filter_type
action find_reverse
entity Paris
relation depicts
type print
[{'concept': 'print'}, 'depicts', 'Paris']
SELECT DISTINCT ?c WHERE { ?c property:depicts resource:Paris . ?c rdf:type ontology:print }
[]
print
Q18822980 Q18822959 Q18822933
SYSTEM
From Quai de Grenelle, From Boulevard de Clichy, From Pont des Saints-Pères
Q18822933 Q19963546 Q18822999 Q18822879 Q18822990 Q18822871 Q18822925 Q18822949 Q18822977 Q18822888 Q18822969 Q18822941 Q18822988 Q18822989 Q18822848 Q18822982 Q18822983 Q18822980 Q18822981 Q18822986 Q18822987 Q18822984 Q18822985 Q18823008 Q18823004 Q18823005 Q18823006 Q18823007 Q18823003 Q18822973 Q18822895 Q18822959 Q18822976 Q18822974 Q18822979 Q18822978
(c(Q11060274),P180,Q90)
action filter_type
action find_reverse
entity Q90
relation P180
type Q11060274
[ANSWERS] express Paris
[{'concept': 'Q11060274'}, 'P180', 'Q90']
SELECT DISTINCT ?c WHERE { ?c property:P180 resource:Q90 . ?c rdf:type ontology:Q11060274 }
From Pont des Saints-Pères Line in Front of the Butcher Shop Plumber Worker in the Tower The Tower Being Built, from Trocadéro From Quai de Javel (Signaller Shack) The Eiffel Tower Building Sites From Grenelle Vegetable Gardens From Notre-Dame From Rue Rochechouart At the Top of the Tower From Point-du-Jour From Quai de la Conférence From Pont d'Austerlitz Behind L'Élan by Fremiet (Trocadéro) Frontispiece From Pont de Grenelle On the Roofs From Quai de Grenelle From Rue des Abbesses From Île des Cygnes In the Tower From Bois de Boulogne From Place de la Concorde The Painter in the Tower From Bas-Meudon Station From the Estacade From Trocadéro Gardens, Autumn The Barges From Quai de Passy-Charbonniers Celebration on the Seine River, July 14th Rue Beethoven From Boulevard de Clichy From Rue Lamarck From Quai de Passy In Bateau-mouche From Quai de Passy, in the Rain
From Quai de Grenelle, From Boulevard de Clichy and From Pont des Saints-Pères express Paris
From Quai de Grenelle From Boulevard de Clichy From Pont des Saints-Pères
action filter_type
action find_reverse
entity Paris
relation depicts
type print
[{'concept': 'print'}, 'depicts', 'Paris']
SELECT DISTINCT ?c WHERE { ?c property:depicts resource:Paris . ?c rdf:type ontology:print }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q18822980 Q18822959 Q18822933
P180
Q56061
USER
Which administrative territories are expressed in From Quai de Grenelle, From Boulevard de Clichy and From Pont des Saints-Pères ?
(Q18822980,P180,c(Q56061)) (Q18822959,P180,c(Q56061)) (Q18822933,P180,c(Q56061))
action union
action filter_type
action find
entity Q18822980
relation P180
type Q56061
action filter_type
action find
entity Q18822959
relation P180
type Q56061
action filter_type
action find
entity Q18822933
relation P180
type Q56061
['Q18822980', 'P180', {'concept': 'Q56061'}] ['Q18822959', 'P180', {'concept': 'Q56061'}] ['Q18822933', 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?v ) { ( resource:Q18822980 ) ( resource:Q18822959 ) } . ?v property:P180 ?c }
From Quai de Grenelle From Boulevard de Clichy From Pont des Saints-Pères
action union
action filter_type
action find
entity From Quai de Grenelle
relation depicts
type administrative territorial entity
action filter_type
action find
entity From Boulevard de Clichy
relation depicts
type administrative territorial entity
action filter_type
action find
entity From Pont des Saints-Pères
relation depicts
type administrative territorial entity
['From Quai de Grenelle', 'depicts', {'concept': 'administrative territorial entity'}] ['From Boulevard de Clichy', 'depicts', {'concept': 'administrative territorial entity'}] ['From Pont des Saints-Pères', 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?v ) { ( resource:From_Quai_de_Grenelle ) ( resource:From_Boulevard_de_Clichy ) } . ?v property:depicts ?c }
[]
administrative territorial entity
Q90 Q90 Q90
SYSTEM
Paris
Q90 Q90 Q90
(Q18822980,P180,c(Q56061)) (Q18822959,P180,c(Q56061)) (Q18822933,P180,c(Q56061))
action union
action filter_type
action find
entity Q18822980
relation P180
type Q56061
action filter_type
action find
entity Q18822959
relation P180
type Q56061
action filter_type
action find
entity Q18822933
relation P180
type Q56061
[ANSWER], [ANSWER] and [ANSWER] are expressed in From Quai de Grenelle, From Boulevard de Clichy and From Pont des Saints-Pères
['Q18822980', 'P180', {'concept': 'Q56061'}] ['Q18822959', 'P180', {'concept': 'Q56061'}] ['Q18822933', 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?v ) { ( resource:Q18822980 ) ( resource:Q18822959 ) } . ?v property:P180 ?c }
Paris Paris Paris
Paris, Paris and Paris are expressed in From Quai de Grenelle, From Boulevard de Clichy and From Pont des Saints-Pères
Paris Paris Paris
action union
action filter_type
action find
entity From Quai de Grenelle
relation depicts
type administrative territorial entity
action filter_type
action find
entity From Boulevard de Clichy
relation depicts
type administrative territorial entity
action filter_type
action find
entity From Pont des Saints-Pères
relation depicts
type administrative territorial entity
['From Quai de Grenelle', 'depicts', {'concept': 'administrative territorial entity'}] ['From Boulevard de Clichy', 'depicts', {'concept': 'administrative territorial entity'}] ['From Pont des Saints-Pères', 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?v ) { ( resource:From_Quai_de_Grenelle ) ( resource:From_Boulevard_de_Clichy ) } . ?v property:depicts ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q90
P417
Q502895
USER
What is the name of the patron saint of that administrative territory ?
(Q90,P417,c(Q502895)) (Q90,P417,c(Q502895)) (Q90,P417,c(Q502895))
action filter_type
action find
entity Q90
relation P417
type Q502895
['Q90', 'P417', {'concept': 'Q502895'}] ['Q90', 'P417', {'concept': 'Q502895'}] ['Q90', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q90 property:P417 ?d . ?d rdf:type ontology:Q502895 }
Paris
action filter_type
action find
entity Paris
relation patron saint
type common name
['Paris', 'patron saint', {'concept': 'common name'}] ['Paris', 'patron saint', {'concept': 'common name'}] ['Paris', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Paris property:patron_saint ?d . ?d rdf:type ontology:common_name }
[]
common name
Q235863
SYSTEM
Genevieve
Q235863
(Q90,P417,c(Q502895)) (Q90,P417,c(Q502895)) (Q90,P417,c(Q502895))
action filter_type
action find
entity Q90
relation P417
type Q502895
The name of the patron saint of that administrative territory is the [ANSWER]
['Q90', 'P417', {'concept': 'Q502895'}] ['Q90', 'P417', {'concept': 'Q502895'}] ['Q90', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q90 property:P417 ?d . ?d rdf:type ontology:Q502895 }
Genevieve
The name of the patron saint of that administrative territory is the Genevieve
Genevieve
action filter_type
action find
entity Paris
relation patron saint
type common name
['Paris', 'patron saint', {'concept': 'common name'}] ['Paris', 'patron saint', {'concept': 'common name'}] ['Paris', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Paris property:patron_saint ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q90
P361
Q15617994
USER
Which administrative territory is a component of that administrative territory ?
(c(Q15617994),P361,Q235863)
action filter_type
action find_reverse
entity Q90
relation P361
type Q15617994
[{'concept': 'Q15617994'}, 'P361', 'Q235863']
SELECT DISTINCT ?r WHERE { ?r property:P361 resource:Q90 . ?r rdf:type ontology:Q15617994 }
Paris
action filter_type
action find_reverse
entity Paris
relation part of
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'part of', 'Genevieve']
SELECT DISTINCT ?r WHERE { ?r property:part_of resource:Paris . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q186115
SYSTEM
Montmartre
Q186115
(c(Q15617994),P361,Q235863)
action filter_type
action find_reverse
entity Q90
relation P361
type Q15617994
[ANSWER] is a component of that administrative territory
[{'concept': 'Q15617994'}, 'P361', 'Q235863']
SELECT DISTINCT ?r WHERE { ?r property:P361 resource:Q90 . ?r rdf:type ontology:Q15617994 }
Montmartre
Montmartre is a component of that administrative territory
Montmartre
action filter_type
action find_reverse
entity Paris
relation part of
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'part of', 'Genevieve']
SELECT DISTINCT ?r WHERE { ?r property:part_of resource:Paris . ?r 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 diplomatic relationships with atmost 20 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 20
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?c ) WHERE { ?l property:P530 ?w . ?l rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?c <= 20 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 20
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?c ) 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 } . FILTER ( ?c <= 20 ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 20
[ANSWERS] have diplomatic relationships with atmost 20 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?c ) WHERE { ?l property:P530 ?w . ?l rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?c <= 20 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, Austria and New Zealand have diplomatic relationships with atmost 20 administrative territories
Denmark Austria New Zealand
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 20
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?c ) 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 } . FILTER ( ?c <= 20 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with atmost 6 political territories ?
(c(Q1048835),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?q ) WHERE { ?z property:P530 ?t . ?z rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?q <= 6 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 6
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?q ) WHERE { ?z property:diplomatic_relation ?t . ?z rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?q <= 6 ) }
[]
political territorial entity political territorial entity
Q183 Q35 Q16
SYSTEM
Germany, Denmark, Canada
Q1000 Q40 Q781 Q778 Q183 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[ANSWERS] have diplomatic relations with atmost 6 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?q ) WHERE { ?z property:P530 ?t . ?z rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?q <= 6 ) }
Gabon Austria Antigua and Barbuda The Bahamas Germany Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Germany, Denmark and Canada have diplomatic relations with atmost 6 political territories
Germany Denmark Canada
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 6
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?q ) WHERE { ?z property:diplomatic_relation ?t . ?z rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?q <= 6 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P495
Q11032 Q147538
USER
How many newspapers and soft drinks have that political territory as their place of origin ?
(c(Q11032),P495,Q35) (c(Q147538),P495,Q35) (c(Q11032),P495,Q183) (c(Q147538),P495,Q183) (c(Q11032),P495,Q35) (c(Q147538),P495,Q35) (c(Q11032),P495,Q16) (c(Q147538),P495,Q16)
[{'concept': 'Q11032'}, 'P495', 'Q35'] [{'concept': 'Q147538'}, 'P495', 'Q35'] [{'concept': 'Q11032'}, 'P495', 'Q183'] [{'concept': 'Q147538'}, 'P495', 'Q183'] [{'concept': 'Q11032'}, 'P495', 'Q35'] [{'concept': 'Q147538'}, 'P495', 'Q35'] [{'concept': 'Q11032'}, 'P495', 'Q16'] [{'concept': 'Q147538'}, 'P495', 'Q16']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P495 resource:Q22286761 } UNION { ?y property:P495 resource:Q22286761 } UNION { ?z property:P495 resource:Q423030 } UNION { ?y property:P495 resource:Q423030 } UNION { ?z property:P495 resource:Q22286761 } UNION { ?y property:P495 resource:Q22286761 } UNION { ?z property:P495 resource:Q1031917 } UNION { ?y property:P495 resource:Q1031917 } } . ?z rdf:type ontology:Q11032 . ?y rdf:type ontology:Q147538 }
[{'concept': 'newspaper'}, 'country of origin', 'Denmark'] [{'concept': 'soft drink'}, 'country of origin', 'Denmark'] [{'concept': 'newspaper'}, 'country of origin', 'Germany'] [{'concept': 'soft drink'}, 'country of origin', 'Germany'] [{'concept': 'newspaper'}, 'country of origin', 'Denmark'] [{'concept': 'soft drink'}, 'country of origin', 'Denmark'] [{'concept': 'newspaper'}, 'country of origin', 'Canada'] [{'concept': 'soft drink'}, 'country of origin', 'Canada']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country_of_origin resource:Denmark } UNION { ?y property:country_of_origin resource:Denmark } UNION { ?z property:country_of_origin resource:Germany } UNION { ?y property:country_of_origin resource:Germany } UNION { ?z property:country_of_origin resource:Denmark } UNION { ?y property:country_of_origin resource:Denmark } UNION { ?z property:country_of_origin resource:Canada } UNION { ?y property:country_of_origin resource:Canada } } . ?z rdf:type ontology:newspaper . ?y rdf:type ontology:soft_drink }
[]
newspaper soft drink
Quantitative|Count|Mult. entity type|Clarification
Q183
SYSTEM
Did you mean Germany ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P495 resource:Q22286761 } UNION { ?y property:P495 resource:Q22286761 } UNION { ?z property:P495 resource:Q423030 } UNION { ?y property:P495 resource:Q423030 } UNION { ?z property:P495 resource:Q22286761 } UNION { ?y property:P495 resource:Q22286761 } UNION { ?z property:P495 resource:Q1031917 } UNION { ?y property:P495 resource:Q1031917 } } . ?z rdf:type ontology:Q11032 . ?y rdf:type ontology:Q147538 }
Did you mean Germany ?
Germany
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country_of_origin resource:Denmark } UNION { ?y property:country_of_origin resource:Denmark } UNION { ?z property:country_of_origin resource:Germany } UNION { ?y property:country_of_origin resource:Germany } UNION { ?z property:country_of_origin resource:Denmark } UNION { ?y property:country_of_origin resource:Denmark } UNION { ?z property:country_of_origin resource:Canada } UNION { ?y property:country_of_origin resource:Canada } } . ?z rdf:type ontology:newspaper . ?y rdf:type ontology:soft_drink }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Denmark. Could you tell me the answer for that?
(c(Q11032),P495,Q35) (c(Q147538),P495,Q35) (c(Q11032),P495,Q183) (c(Q147538),P495,Q183) (c(Q11032),P495,Q35) (c(Q147538),P495,Q35) (c(Q11032),P495,Q16) (c(Q147538),P495,Q16)
Q35
[{'concept': 'Q11032'}, 'P495', 'Q35'] [{'concept': 'Q147538'}, 'P495', 'Q35'] [{'concept': 'Q11032'}, 'P495', 'Q183'] [{'concept': 'Q147538'}, 'P495', 'Q183'] [{'concept': 'Q11032'}, 'P495', 'Q35'] [{'concept': 'Q147538'}, 'P495', 'Q35'] [{'concept': 'Q11032'}, 'P495', 'Q16'] [{'concept': 'Q147538'}, 'P495', 'Q16']
[{'concept': 'newspaper'}, 'country of origin', 'Denmark'] [{'concept': 'soft drink'}, 'country of origin', 'Denmark'] [{'concept': 'newspaper'}, 'country of origin', 'Germany'] [{'concept': 'soft drink'}, 'country of origin', 'Germany'] [{'concept': 'newspaper'}, 'country of origin', 'Denmark'] [{'concept': 'soft drink'}, 'country of origin', 'Denmark'] [{'concept': 'newspaper'}, 'country of origin', 'Canada'] [{'concept': 'soft drink'}, 'country of origin', 'Canada']
[]
SYSTEM
3 newspapers and 1 soft drinks
Q12323367 Q1877200 Q3643910 Q59055
(c(Q11032),P495,Q35) (c(Q147538),P495,Q35) (c(Q11032),P495,Q183) (c(Q147538),P495,Q183) (c(Q11032),P495,Q35) (c(Q147538),P495,Q35) (c(Q11032),P495,Q16) (c(Q147538),P495,Q16)
[ANSWER]
[{'concept': 'Q11032'}, 'P495', 'Q35'] [{'concept': 'Q147538'}, 'P495', 'Q35'] [{'concept': 'Q11032'}, 'P495', 'Q183'] [{'concept': 'Q147538'}, 'P495', 'Q183'] [{'concept': 'Q11032'}, 'P495', 'Q35'] [{'concept': 'Q147538'}, 'P495', 'Q35'] [{'concept': 'Q11032'}, 'P495', 'Q16'] [{'concept': 'Q147538'}, 'P495', 'Q16']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P495 resource:Q22286761 } UNION { ?y property:P495 resource:Q22286761 } UNION { ?z property:P495 resource:Q423030 } UNION { ?y property:P495 resource:Q423030 } UNION { ?z property:P495 resource:Q22286761 } UNION { ?y property:P495 resource:Q22286761 } UNION { ?z property:P495 resource:Q1031917 } UNION { ?y property:P495 resource:Q1031917 } } . ?z rdf:type ontology:Q11032 . ?y rdf:type ontology:Q147538 }
København Jolly Cola The Copenhagen Post Berlingske
3 newspapers and 1 soft drinks
[{'concept': 'newspaper'}, 'country of origin', 'Denmark'] [{'concept': 'soft drink'}, 'country of origin', 'Denmark'] [{'concept': 'newspaper'}, 'country of origin', 'Germany'] [{'concept': 'soft drink'}, 'country of origin', 'Germany'] [{'concept': 'newspaper'}, 'country of origin', 'Denmark'] [{'concept': 'soft drink'}, 'country of origin', 'Denmark'] [{'concept': 'newspaper'}, 'country of origin', 'Canada'] [{'concept': 'soft drink'}, 'country of origin', 'Canada']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country_of_origin resource:Denmark } UNION { ?y property:country_of_origin resource:Denmark } UNION { ?z property:country_of_origin resource:Germany } UNION { ?y property:country_of_origin resource:Germany } UNION { ?z property:country_of_origin resource:Denmark } UNION { ?y property:country_of_origin resource:Denmark } UNION { ?z property:country_of_origin resource:Canada } UNION { ?y property:country_of_origin resource:Canada } } . ?z rdf:type ontology:newspaper . ?y rdf:type ontology:soft_drink }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P35
Q502895
USER
Which people are the heads of state of Germany ?
(Q183,P35,c(Q502895))
action filter_type
action find
entity Q183
relation P35
type Q502895
['Q183', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q183 property:P35 ?h . ?h rdf:type ontology:Q502895 }
Germany
action filter_type
action find
entity Germany
relation head of state
type common name
['Germany', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Germany property:head_of_state ?h . ?h rdf:type ontology:common_name }
[]
common name
Q2567 Q2571 Q2594
SYSTEM
Richard von Weizsäcker, Walter Scheel, Theodor Heuss
Q2569 Q2594 Q2573 Q2563 Q2571 Q2538 Q2551 Q2567 Q2540 Q2582 Q2542
(Q183,P35,c(Q502895))
action filter_type
action find
entity Q183
relation P35
type Q502895
[ANSWERS] are the heads of state of Germany
['Q183', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q183 property:P35 ?h . ?h rdf:type ontology:Q502895 }
Karl Carstens Theodor Heuss Gustav Heinemann Roman Herzog Walter Scheel Joachim Gauck Johannes Rau Richard von Weizsäcker Christian Wulff Heinrich Lübke Horst Köhler
Richard von Weizsäcker, Walter Scheel and Theodor Heuss are the heads of state of Germany
Richard von Weizsäcker Walter Scheel Theodor Heuss
action filter_type
action find
entity Germany
relation head of state
type common name
['Germany', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Germany property:head_of_state ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2567 Q2571 Q2594
P26
Q502895
USER
Which people are the life partner of those ones ?
(c(Q502895),P26,Q2567) (c(Q502895),P26,Q2571) (c(Q502895),P26,Q2594)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q2567'] [{'concept': 'Q502895'}, 'P26', 'Q2571'] [{'concept': 'Q502895'}, 'P26', 'Q2594']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?q property:P26 ?w . VALUES ( ?q ) { ( resource:Q2569 ) ( resource:Q2594 ) ( resource:Q2573 ) } }
Richard von Weizsäcker Walter Scheel Theodor Heuss
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Richard von Weizsäcker'] [{'concept': 'common name'}, 'spouse', 'Walter Scheel'] [{'concept': 'common name'}, 'spouse', 'Theodor Heuss']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?q property:spouse ?w . VALUES ( ?q ) { ( resource:Karl_Carstens ) ( resource:Theodor_Heuss ) ( resource:Gustav_Heinemann ) } }
[]
common name
Q77960 Q66805 Q78010
SYSTEM
Marianne von Weizsäcker, Mildred Scheel, Elly Heuss-Knapp
Q77960 Q66805 Q78010
(c(Q502895),P26,Q2567) (c(Q502895),P26,Q2571) (c(Q502895),P26,Q2594)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[ANSWERS] are the life partner of those ones
[{'concept': 'Q502895'}, 'P26', 'Q2567'] [{'concept': 'Q502895'}, 'P26', 'Q2571'] [{'concept': 'Q502895'}, 'P26', 'Q2594']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?q property:P26 ?w . VALUES ( ?q ) { ( resource:Q2569 ) ( resource:Q2594 ) ( resource:Q2573 ) } }
Marianne von Weizsäcker Mildred Scheel Elly Heuss-Knapp
Marianne von Weizsäcker, Mildred Scheel and Elly Heuss-Knapp are the life partner of those ones
Marianne von Weizsäcker Mildred Scheel Elly Heuss-Knapp
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Richard von Weizsäcker'] [{'concept': 'common name'}, 'spouse', 'Walter Scheel'] [{'concept': 'common name'}, 'spouse', 'Theodor Heuss']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?q property:spouse ?w . VALUES ( ?q ) { ( resource:Karl_Carstens ) ( resource:Theodor_Heuss ) ( resource:Gustav_Heinemann ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q77960
P25
Q502895
USER
Who are the offspring of that one ?
(c(Q502895),P25,Q77960)
action filter_type
action find_reverse
entity Q77960
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q77960']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P25 resource:Q77960 }
Marianne von Weizsäcker
action filter_type
action find_reverse
entity Marianne von Weizsäcker
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Marianne von Weizsäcker']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:mother resource:Marianne_von_Weizsäcker }
[]
common name
Clarification for simple ques.
Q78010
SYSTEM
Did you mean Elly Heuss-Knapp ?
Q77960 Q66805 Q78010
(c(Q502895),P25,Q77960) (c(Q502895),P25,Q66805) (c(Q502895),P25,Q78010)
[ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q77960'] [{'concept': 'Q502895'}, 'P25', 'Q66805'] [{'concept': 'Q502895'}, 'P25', 'Q78010']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P25 resource:Q77960 }
Marianne von Weizsäcker Mildred Scheel Elly Heuss-Knapp
Did you mean Elly Heuss-Knapp ?
Elly Heuss-Knapp
[{'concept': 'common name'}, 'mother', 'Marianne von Weizsäcker'] [{'concept': 'common name'}, 'mother', 'Mildred Scheel'] [{'concept': 'common name'}, 'mother', 'Elly Heuss-Knapp']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:mother resource:Marianne_von_Weizsäcker }
[]
Simple Question (Coreferenced)
USER
No, I meant Marianne von Weizsäcker. Could you tell me the answer for that?
(c(Q502895),P25,Q77960)
Q77960
[{'concept': 'Q502895'}, 'P25', 'Q77960']
[{'concept': 'common name'}, 'mother', 'Marianne von Weizsäcker']
[]
Q501493 Q1503424 Q813272
SYSTEM
Andreas von Weizsäcker, Robert K. von Weizsäcker, Beatrice von Weizsäcker
Q501493 Q1469164 Q1503424 Q813272
(c(Q502895),P25,Q77960)
action filter_type
action find_reverse
entity Q77960
relation P25
type Q502895
The offspring of that one are [ANSWERS]
[{'concept': 'Q502895'}, 'P25', 'Q77960']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P25 resource:Q77960 }
Andreas von Weizsäcker Fritz von Weizsäcker Robert K. von Weizsäcker Beatrice von Weizsäcker
The offspring of that one are Andreas von Weizsäcker, Robert K. von Weizsäcker and Beatrice von Weizsäcker
Andreas von Weizsäcker Robert K. von Weizsäcker Beatrice von Weizsäcker
action filter_type
action find_reverse
entity Marianne von Weizsäcker
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Marianne von Weizsäcker']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:mother resource:Marianne_von_Weizsäcker }
[]