Simple Question (Direct)
Simple Question
Q3917220
P40
Q502895
USER
Which people are children of Jan Samuelowicz Ogiński ?
(Q3917220,P40,c(Q502895))
action filter_type
action find
entity Q3917220
relation P40
type Q502895
['Q3917220', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q3917220 property:P40 ?l }
Jan Samuelowicz Ogiński
action filter_type
action find
entity Jan Samuelowicz Ogiński
relation child
type common name
['Jan Samuelowicz Ogiński', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Jan_Samuelowicz_Ogiński property:child ?l }
[]
common name
Q3692419 Q4392223 Q1545072
SYSTEM
Kazimierz Dominik Ogiński, Mikalojus Pranciškus Oginskis, Grzegorz Antoni Ogiński
Q4479335 Q4392223 Q3692419 Q1545072
(Q3917220,P40,c(Q502895))
action filter_type
action find
entity Q3917220
relation P40
type Q502895
[ANSWERS] are children of Jan Samuelowicz Ogiński
['Q3917220', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q3917220 property:P40 ?l }
Leonas Kazimieras Oginskis Mikalojus Pranciškus Oginskis Kazimierz Dominik Ogiński Grzegorz Antoni Ogiński
Kazimierz Dominik Ogiński, Mikalojus Pranciškus Oginskis and Grzegorz Antoni Ogiński are children of Jan Samuelowicz Ogiński
Kazimierz Dominik Ogiński Mikalojus Pranciškus Oginskis Grzegorz Antoni Ogiński
action filter_type
action find
entity Jan Samuelowicz Ogiński
relation child
type common name
['Jan Samuelowicz Ogiński', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Jan_Samuelowicz_Ogiński property:child ?l }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1545072
P7
Q502895
USER
Who have that one as their sibling ?
(Q1545072,P7,c(Q502895))
action filter_type
action find
entity Q1545072
relation P7
type Q502895
['Q1545072', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1545072 property:P7 ?g . ?g rdf:type ontology:Q502895 }
Grzegorz Antoni Ogiński
action filter_type
action find
entity Grzegorz Antoni Ogiński
relation brother
type common name
['Grzegorz Antoni Ogiński', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Grzegorz_Antoni_Ogiński property:brother ?g . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q3692419
SYSTEM
Did you mean Kazimierz Dominik Ogiński ?
Q3692419 Q4392223 Q1545072
(Q3692419,P7,c(Q502895)) (Q4392223,P7,c(Q502895)) (Q1545072,P7,c(Q502895))
[ANSWER]
['Q3692419', 'P7', {'concept': 'Q502895'}] ['Q4392223', 'P7', {'concept': 'Q502895'}] ['Q1545072', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1545072 property:P7 ?g . ?g rdf:type ontology:Q502895 }
Kazimierz Dominik Ogiński Mikalojus Pranciškus Oginskis Grzegorz Antoni Ogiński
Did you mean Kazimierz Dominik Ogiński ?
Kazimierz Dominik Ogiński
['Kazimierz Dominik Ogiński', 'brother', {'concept': 'common name'}] ['Mikalojus Pranciškus Oginskis', 'brother', {'concept': 'common name'}] ['Grzegorz Antoni Ogiński', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Grzegorz_Antoni_Ogiński property:brother ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Grzegorz Antoni Ogiński. Could you tell me the answer for that?
(Q1545072,P7,c(Q502895))
Q1545072
['Q1545072', 'P7', {'concept': 'Q502895'}]
['Grzegorz Antoni Ogiński', 'brother', {'concept': 'common name'}]
[]
Q4479335 Q4392223 Q3692419
SYSTEM
Leonas Kazimieras Oginskis, Mikalojus Pranciškus Oginskis, Kazimierz Dominik Ogiński
Q4479335 Q4392223 Q3692419
(Q1545072,P7,c(Q502895))
action filter_type
action find
entity Q1545072
relation P7
type Q502895
[ANSWERS] have that one as their sibling
['Q1545072', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1545072 property:P7 ?g . ?g rdf:type ontology:Q502895 }
Leonas Kazimieras Oginskis Mikalojus Pranciškus Oginskis Kazimierz Dominik Ogiński
Leonas Kazimieras Oginskis, Mikalojus Pranciškus Oginskis and Kazimierz Dominik Ogiński have that one as their sibling
Leonas Kazimieras Oginskis Mikalojus Pranciškus Oginskis Kazimierz Dominik Ogiński
action filter_type
action find
entity Grzegorz Antoni Ogiński
relation brother
type common name
['Grzegorz Antoni Ogiński', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Grzegorz_Antoni_Ogiński property:brother ?g . ?g rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atleast 3518 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3518
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?w ) WHERE { ?z property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?w >= 3518 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3518
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?w ) WHERE { ?z property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?w >= 3518 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3518
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?w ) WHERE { ?z property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?w >= 3518 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3518
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?w ) WHERE { ?z property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?w >= 3518 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3692419
P39
Q4164871
USER
What was a position occupied by Kazimierz Dominik Ogiński ?
(Q3692419,P39,c(Q4164871))
action filter_type
action find
entity Q3692419
relation P39
type Q4164871
['Q3692419', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ?m WHERE { resource:Q3692419 property:P39 ?m . ?m rdf:type ontology:Q4164871 }
Kazimierz Dominik Ogiński
action filter_type
action find
entity Kazimierz Dominik Ogiński
relation position held
type position
['Kazimierz Dominik Ogiński', 'position held', {'concept': 'position'}]
SELECT DISTINCT ?m WHERE { resource:Kazimierz_Dominik_Ogiński property:position_held ?m . ?m rdf:type ontology:position }
[]
position
Q2607541
SYSTEM
Voivode of Trakai
Q2607541
(Q3692419,P39,c(Q4164871))
action filter_type
action find
entity Q3692419
relation P39
type Q4164871
A position occupied by Kazimierz Dominik Ogiński was the [ANSWER]
['Q3692419', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ?m WHERE { resource:Q3692419 property:P39 ?m . ?m rdf:type ontology:Q4164871 }
Voivode of Trakai
A position occupied by Kazimierz Dominik Ogiński was the Voivode of Trakai
Voivode of Trakai
action filter_type
action find
entity Kazimierz Dominik Ogiński
relation position held
type position
['Kazimierz Dominik Ogiński', 'position held', {'concept': 'position'}]
SELECT DISTINCT ?m WHERE { resource:Kazimierz_Dominik_Ogiński property:position_held ?m . ?m rdf:type ontology:position }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q3692419
Q12737077
USER
And which occupation?
(Q3692419,P39,c(Q12737077))
action filter_type
action find
entity Q3692419
relation P39
type Q12737077
['Q3692419', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q3692419 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
Kazimierz Dominik Ogiński
action filter_type
action find
entity Kazimierz Dominik Ogiński
relation position held
type occupation
['Kazimierz Dominik Ogiński', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Kazimierz_Dominik_Ogiński property:position_held ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q735687
SYSTEM
Voivod of Vilnius
Q735687
(Q3692419,P39,c(Q12737077))
action filter_type
action find
entity Q3692419
relation P39
type Q12737077
[ANSWER]
['Q3692419', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q3692419 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
Voivod of Vilnius
Voivod of Vilnius
action filter_type
action find
entity Kazimierz Dominik Ogiński
relation position held
type occupation
['Kazimierz Dominik Ogiński', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Kazimierz_Dominik_Ogiński property:position_held ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3692419
P166
Q618779
USER
Which award was Kazimierz Dominik Ogiński awarded with ?
(Q3692419,P166,c(Q618779))
action filter_type
action find
entity Q3692419
relation P166
type Q618779
['Q3692419', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?h WHERE { resource:Q3692419 property:P166 ?h . ?h rdf:type ontology:Q618779 }
Kazimierz Dominik Ogiński
action filter_type
action find
entity Kazimierz Dominik Ogiński
relation award received
type award
['Kazimierz Dominik Ogiński', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?h WHERE { resource:Kazimierz_Dominik_Ogiński property:award_received ?h . ?h rdf:type ontology:award }
[]
award
Q84020
SYSTEM
Order of the White Eagle
Q84020
(Q3692419,P166,c(Q618779))
action filter_type
action find
entity Q3692419
relation P166
type Q618779
Kazimierz Dominik Ogiński was awarded the [ANSWER]
['Q3692419', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?h WHERE { resource:Q3692419 property:P166 ?h . ?h rdf:type ontology:Q618779 }
Order of the White Eagle
Kazimierz Dominik Ogiński was awarded the Order of the White Eagle
Order of the White Eagle
action filter_type
action find
entity Kazimierz Dominik Ogiński
relation award received
type award
['Kazimierz Dominik Ogiński', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?h WHERE { resource:Kazimierz_Dominik_Ogiński property:award_received ?h . ?h rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3692419
P7
Q502895
USER
Who are Kazimierz Dominik Ogiński a brother of ?
(c(Q502895),P7,Q3692419)
action filter_type
action find
entity Q3692419
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q3692419']
SELECT DISTINCT ?t WHERE { resource:Q3692419 property:P7 ?t . ?t rdf:type ontology:Q502895 }
Kazimierz Dominik Ogiński
action filter_type
action find
entity Kazimierz Dominik Ogiński
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Kazimierz Dominik Ogiński']
SELECT DISTINCT ?t WHERE { resource:Kazimierz_Dominik_Ogiński property:brother ?t . ?t rdf:type ontology:common_name }
[]
common name
Q4479335 Q4392223 Q1545072
SYSTEM
Leonas Kazimieras Oginskis, Mikalojus Pranciškus Oginskis, Grzegorz Antoni Ogiński
Q4479335 Q4392223 Q1545072
(c(Q502895),P7,Q3692419)
action filter_type
action find
entity Q3692419
relation P7
type Q502895
[ANSWERS] Kazimierz Dominik Ogiński a brother of
[{'concept': 'Q502895'}, 'P7', 'Q3692419']
SELECT DISTINCT ?t WHERE { resource:Q3692419 property:P7 ?t . ?t rdf:type ontology:Q502895 }
Leonas Kazimieras Oginskis Mikalojus Pranciškus Oginskis Grzegorz Antoni Ogiński
Leonas Kazimieras Oginskis, Mikalojus Pranciškus Oginskis and Grzegorz Antoni Ogiński Kazimierz Dominik Ogiński a brother of
Leonas Kazimieras Oginskis Mikalojus Pranciškus Oginskis Grzegorz Antoni Ogiński
action filter_type
action find
entity Kazimierz Dominik Ogiński
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Kazimierz Dominik Ogiński']
SELECT DISTINCT ?t WHERE { resource:Kazimierz_Dominik_Ogiński property:brother ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4479335 Q4392223 Q1545072
P40
Q502895
USER
Who have Leonas Kazimieras Oginskis, Mikalojus Pranciškus Oginskis and Grzegorz Antoni Ogiński as an offspring ?
(c(Q502895),P40,Q4479335) (c(Q502895),P40,Q4392223) (c(Q502895),P40,Q1545072)
action union
action filter_type
action find_reverse
entity Q4479335
relation P40
type Q502895
action filter_type
action find_reverse
entity Q4392223
relation P40
type Q502895
action filter_type
action find_reverse
entity Q1545072
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q4479335'] [{'concept': 'Q502895'}, 'P40', 'Q4392223'] [{'concept': 'Q502895'}, 'P40', 'Q1545072']
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:Q502895 . ?z property:P40 resource:Q4392223 } UNION { ?z rdf:type ontology:Q502895 . ?z property:P40 resource:Q4479335 } }
Leonas Kazimieras Oginskis Mikalojus Pranciškus Oginskis Grzegorz Antoni Ogiński
action union
action filter_type
action find_reverse
entity Leonas Kazimieras Oginskis
relation child
type common name
action filter_type
action find_reverse
entity Mikalojus Pranciškus Oginskis
relation child
type common name
action filter_type
action find_reverse
entity Grzegorz Antoni Ogiński
relation child
type common name
[{'concept': 'common name'}, 'child', 'Leonas Kazimieras Oginskis'] [{'concept': 'common name'}, 'child', 'Mikalojus Pranciškus Oginskis'] [{'concept': 'common name'}, 'child', 'Grzegorz Antoni Ogiński']
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:common_name . ?z property:child resource:Mikalojus_Pranciškus_Oginskis } UNION { ?z rdf:type ontology:common_name . ?z property:child resource:Leonas_Kazimieras_Oginskis } }
[]
common name
Q3917220
SYSTEM
Jan Samuelowicz Ogiński
Q3917220
(c(Q502895),P40,Q4479335) (c(Q502895),P40,Q4392223) (c(Q502895),P40,Q1545072)
action union
action filter_type
action find_reverse
entity Q4479335
relation P40
type Q502895
action filter_type
action find_reverse
entity Q4392223
relation P40
type Q502895
action filter_type
action find_reverse
entity Q1545072
relation P40
type Q502895
[ANSWER] have Leonas Kazimieras Oginskis, Mikalojus Pranciškus Oginskis and Grzegorz Antoni Ogiński as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q4479335'] [{'concept': 'Q502895'}, 'P40', 'Q4392223'] [{'concept': 'Q502895'}, 'P40', 'Q1545072']
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:Q502895 . ?z property:P40 resource:Q4392223 } UNION { ?z rdf:type ontology:Q502895 . ?z property:P40 resource:Q4479335 } }
Jan Samuelowicz Ogiński
Jan Samuelowicz Ogiński have Leonas Kazimieras Oginskis, Mikalojus Pranciškus Oginskis and Grzegorz Antoni Ogiński as an offspring
Jan Samuelowicz Ogiński
action union
action filter_type
action find_reverse
entity Leonas Kazimieras Oginskis
relation child
type common name
action filter_type
action find_reverse
entity Mikalojus Pranciškus Oginskis
relation child
type common name
action filter_type
action find_reverse
entity Grzegorz Antoni Ogiński
relation child
type common name
[{'concept': 'common name'}, 'child', 'Leonas Kazimieras Oginskis'] [{'concept': 'common name'}, 'child', 'Mikalojus Pranciškus Oginskis'] [{'concept': 'common name'}, 'child', 'Grzegorz Antoni Ogiński']
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:common_name . ?z property:child resource:Mikalojus_Pranciškus_Oginskis } UNION { ?z rdf:type ontology:common_name . ?z property:child resource:Leonas_Kazimieras_Oginskis } }
[]