Simple Question (Direct)
Simple Question
Q695515
P140
Q874405
USER
What is the religion associated with Johann Dzierzon ?
(Q695515,P140,c(Q874405))
action filter_type
action find
entity Q695515
relation P140
type Q874405
['Q695515', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?y WHERE { resource:Q695515 property:P140 ?y . ?y rdf:type ontology:Q874405 }
Johann Dzierzon
action filter_type
action find
entity Johann Dzierzon
relation religion
type social group
['Johann Dzierzon', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?y WHERE { resource:Johann_Dzierzon property:religion ?y . ?y rdf:type ontology:social_group }
[]
social group
Q1841
SYSTEM
Catholicism
Q1841
(Q695515,P140,c(Q874405))
action filter_type
action find
entity Q695515
relation P140
type Q874405
The religion associated with Johann Dzierzon is Roman [ANSWER]
['Q695515', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?y WHERE { resource:Q695515 property:P140 ?y . ?y rdf:type ontology:Q874405 }
Catholicism
The religion associated with Johann Dzierzon is Roman Catholicism
Catholicism
action filter_type
action find
entity Johann Dzierzon
relation religion
type social group
['Johann Dzierzon', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?y WHERE { resource:Johann_Dzierzon property:religion ?y . ?y rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q695515
P1038
Q502895
USER
Who is a relative of that one ?
(Q1841,P1038,c(Q502895))
action filter_type
action find
entity Q695515
relation P1038
type Q502895
['Q1841', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q695515 property:P1038 ?o }
Johann Dzierzon
action filter_type
action find
entity Johann Dzierzon
relation relative
type common name
['Catholicism', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Johann_Dzierzon property:relative ?o }
[]
common name
Q19960013
SYSTEM
Victor Kaluza
Q19960013
(Q1841,P1038,c(Q502895))
action filter_type
action find
entity Q695515
relation P1038
type Q502895
A relative of that one is the [ANSWER]
['Q1841', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q695515 property:P1038 ?o }
Victor Kaluza
A relative of that one is the Victor Kaluza
Victor Kaluza
action filter_type
action find
entity Johann Dzierzon
relation relative
type common name
['Catholicism', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Johann_Dzierzon property:relative ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19960013
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q19960013,P19,c(Q56061))
action filter_type
action find
entity Q19960013
relation P19
type Q56061
['Q19960013', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q19960013 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Victor Kaluza
action filter_type
action find
entity Victor Kaluza
relation place of birth
type administrative territorial entity
['Victor Kaluza', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Victor_Kaluza property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q79322
SYSTEM
Kluczbork
Q79322
(Q19960013,P19,c(Q56061))
action filter_type
action find
entity Q19960013
relation P19
type Q56061
That person was born in [ANSWER]
['Q19960013', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q19960013 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Kluczbork
That person was born in Kluczbork
Kluczbork
action filter_type
action find
entity Victor Kaluza
relation place of birth
type administrative territorial entity
['Victor Kaluza', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Victor_Kaluza property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3929247
Q56061
USER
And what about Raffaello Gambogi?
(Q3929247,P19,c(Q56061))
action filter_type
action find
entity Q3929247
relation P19
type Q56061
['Q3929247', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q3929247 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Raffaello Gambogi
action filter_type
action find
entity Raffaello Gambogi
relation place of birth
type administrative territorial entity
['Raffaello Gambogi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Raffaello_Gambogi property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q6761
SYSTEM
Livorno
Q6761
(Q3929247,P19,c(Q56061))
action filter_type
action find
entity Q3929247
relation P19
type Q56061
[ANSWER]
['Q3929247', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q3929247 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Livorno
Livorno
action filter_type
action find
entity Raffaello Gambogi
relation place of birth
type administrative territorial entity
['Raffaello Gambogi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Raffaello_Gambogi property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q43229 Q895526 Q874405
USER
Which social groups are a component of around 2 organizations and authority organs ?
(c(Q874405),P361,c(Q43229)|c(Q895526))
action approx
action union
action find_tuple_counts
relation P361
type Q874405
type Q43229
action find_tuple_counts
relation P361
type Q874405
type Q895526
value 2
[{'concept': 'Q874405'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?e ) WHERE { { ?x property:P361 ?p . ?x rdf:type ontology:Q874405 . ?p rdf:type ontology:Q43229 } UNION { ?x property:P361 ?p . ?x rdf:type ontology:Q874405 . ?p rdf:type ontology:Q895526 } } GROUP BY ?x } . FILTER ( ?e = 2 ) }
action approx
action union
action find_tuple_counts
relation part of
type social group
type organization
action find_tuple_counts
relation part of
type social group
type authority organ
value 2
[{'concept': 'social group'}, 'part of', [{'concept': 'organization'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?e ) WHERE { { ?x property:part_of ?p . ?x rdf:type ontology:social_group . ?p rdf:type ontology:organization } UNION { ?x property:part_of ?p . ?x rdf:type ontology:social_group . ?p rdf:type ontology:authority_organ } } GROUP BY ?x } . FILTER ( ?e = 2 ) }
[]
organization authority organ social group
Q911765
SYSTEM
ISO/IEC JTC 1
Q911765
(c(Q874405),P361,c(Q43229)|c(Q895526))
action approx
action union
action find_tuple_counts
relation P361
type Q874405
type Q43229
action find_tuple_counts
relation P361
type Q874405
type Q895526
value 2
[ANSWER] is a component of around 2 organizations and authority organs
[{'concept': 'Q874405'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?e ) WHERE { { ?x property:P361 ?p . ?x rdf:type ontology:Q874405 . ?p rdf:type ontology:Q43229 } UNION { ?x property:P361 ?p . ?x rdf:type ontology:Q874405 . ?p rdf:type ontology:Q895526 } } GROUP BY ?x } . FILTER ( ?e = 2 ) }
ISO/IEC JTC 1
ISO/IEC JTC 1 is a component of around 2 organizations and authority organs
ISO/IEC JTC 1
action approx
action union
action find_tuple_counts
relation part of
type social group
type organization
action find_tuple_counts
relation part of
type social group
type authority organ
value 2
[{'concept': 'social group'}, 'part of', [{'concept': 'organization'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?e ) WHERE { { ?x property:part_of ?p . ?x rdf:type ontology:social_group . ?p rdf:type ontology:organization } UNION { ?x property:part_of ?p . ?x rdf:type ontology:social_group . ?p rdf:type ontology:authority_organ } } GROUP BY ?x } . FILTER ( ?e = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3813 Q6761
P190
Q515
USER
Which cities are sister towns of Livorno or Marl ?
OR((Q6761,P190,c(Q515)), (Q3813,P190,c(Q515)))
action filter_type
action union
action find
entity Q6761
relation P190
action find
entity Q3813
relation P190
type Q515
{'OR': [['Q6761', 'P190', {'concept': 'Q515'}], ['Q3813', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q3813 property:P190 ?m } UNION { resource:Q6761 property:P190 ?m } } . ?m rdf:type ontology:Q515 }
Marl Livorno
action filter_type
action union
action find
entity Livorno
relation sister city
action find
entity Marl
relation sister city
type city
{'OR': [['Livorno', 'sister city', {'concept': 'city'}], ['Marl', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Marl property:sister_city ?m } UNION { resource:Livorno property:sister_city ?m } } . ?m rdf:type ontology:city }
[]
city
Q17042 Q72818 Q60037
SYSTEM
Oakland, Haiphong, Zalaegerszeg
Q17042 Q72818 Q60037
OR((Q6761,P190,c(Q515)), (Q3813,P190,c(Q515)))
action filter_type
action union
action find
entity Q6761
relation P190
action find
entity Q3813
relation P190
type Q515
[ANSWERS] are sister towns of Livorno or Marl
{'OR': [['Q6761', 'P190', {'concept': 'Q515'}], ['Q3813', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q3813 property:P190 ?m } UNION { resource:Q6761 property:P190 ?m } } . ?m rdf:type ontology:Q515 }
Oakland Haiphong Zalaegerszeg
Oakland, Haiphong and Zalaegerszeg are sister towns of Livorno or Marl
Oakland Haiphong Zalaegerszeg
action filter_type
action union
action find
entity Livorno
relation sister city
action find
entity Marl
relation sister city
type city
{'OR': [['Livorno', 'sister city', {'concept': 'city'}], ['Marl', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Marl property:sister_city ?m } UNION { resource:Livorno property:sister_city ?m } } . ?m rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q15324 Q337567 Q515
USER
Which cities are located in the neighbourhood of max number of bodies of water or still waterss ?
(c(Q515),P206,c(Q15324)|c(Q337567))
action argmax
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q337567
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?p WHERE { FILTER ( ?r = ?y ) . { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?r ) WHERE { { ?p rdf:type ontology:Q515 . ?w rdf:type ontology:Q337567 . ?p property:P206 ?w } UNION { ?p property:P206 ?w . ?p rdf:type ontology:Q515 . ?w rdf:type ontology:Q15324 } } GROUP BY ?p } . { SELECT DISTINCT ( MAX ( ?o ) AS ?y ) { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?o ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q337567 ) ( ontology:Q15324 ) } } GROUP BY ?u } } }
action argmax
action union
action find_tuple_counts
relation located next to body of water
type city
type body of water
action find_tuple_counts
relation located next to body of water
type city
type still waters
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?p WHERE { FILTER ( ?r = ?y ) . { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?r ) WHERE { { ?p rdf:type ontology:city . ?w rdf:type ontology:still_waters . ?p property:located_next_to_body_of_water ?w } UNION { ?p property:located_next_to_body_of_water ?w . ?p rdf:type ontology:city . ?w rdf:type ontology:body_of_water } } GROUP BY ?p } . { SELECT DISTINCT ( MAX ( ?o ) AS ?y ) { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?o ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:still_waters ) ( ontology:body_of_water ) } } GROUP BY ?u } } }
[]
body of water still waters city
Q1711
SYSTEM
Potsdam
Q1711
(c(Q515),P206,c(Q15324)|c(Q337567))
action argmax
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q337567
[ANSWER] is located in the neighbourhood of max number of bodies of water or still waterss
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?p WHERE { FILTER ( ?r = ?y ) . { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?r ) WHERE { { ?p rdf:type ontology:Q515 . ?w rdf:type ontology:Q337567 . ?p property:P206 ?w } UNION { ?p property:P206 ?w . ?p rdf:type ontology:Q515 . ?w rdf:type ontology:Q15324 } } GROUP BY ?p } . { SELECT DISTINCT ( MAX ( ?o ) AS ?y ) { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?o ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q337567 ) ( ontology:Q15324 ) } } GROUP BY ?u } } }
Potsdam
Potsdam is located in the neighbourhood of max number of bodies of water or still waterss
Potsdam
action argmax
action union
action find_tuple_counts
relation located next to body of water
type city
type body of water
action find_tuple_counts
relation located next to body of water
type city
type still waters
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?p WHERE { FILTER ( ?r = ?y ) . { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?r ) WHERE { { ?p rdf:type ontology:city . ?w rdf:type ontology:still_waters . ?p property:located_next_to_body_of_water ?w } UNION { ?p property:located_next_to_body_of_water ?w . ?p rdf:type ontology:city . ?w rdf:type ontology:body_of_water } } GROUP BY ?p } . { SELECT DISTINCT ( MAX ( ?o ) AS ?y ) { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?o ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:still_waters ) ( ontology:body_of_water ) } } GROUP BY ?u } } }
[]