Simple Question (Direct)
Simple Question
Q575856
P106
Q12737077
USER
What do Paul Mason do for a living ?
(Q575856,P106,c(Q12737077))
action filter_type
action find
entity Q575856
relation P106
type Q12737077
['Q575856', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q575856 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Paul Mason
action filter_type
action find
entity Paul Mason
relation occupation
type occupation
['Paul Mason', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Paul_Mason property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q1930187 Q36180
SYSTEM
journalist, writer
Q1930187 Q36180
(Q575856,P106,c(Q12737077))
action filter_type
action find
entity Q575856
relation P106
type Q12737077
Paul Mason do for a living as [ANSWERS]
['Q575856', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q575856 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
journalist writer
Paul Mason do for a living as journalist and writer
journalist writer
action filter_type
action find
entity Paul Mason
relation occupation
type occupation
['Paul Mason', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Paul_Mason property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1930187 Q36180
P39
Q502895
USER
Who were responsible for occupying the position of journalist and writer ?
(c(Q502895),P39,Q1930187) (c(Q502895),P39,Q36180)
action union
action filter_type
action find_reverse
entity Q1930187
relation P39
type Q502895
action filter_type
action find_reverse
entity Q36180
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q1930187'] [{'concept': 'Q502895'}, 'P39', 'Q36180']
SELECT DISTINCT ?w WHERE { VALUES ( ?g ) { ( resource:Q36180 ) ( resource:Q1930187 ) } . ?w property:P39 ?g }
journalist writer
action union
action filter_type
action find_reverse
entity journalist
relation position held
type common name
action filter_type
action find_reverse
entity writer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'journalist'] [{'concept': 'common name'}, 'position held', 'writer']
SELECT DISTINCT ?w WHERE { VALUES ( ?g ) { ( resource:writer ) ( resource:journalist ) } . ?w property:position_held ?g }
[]
common name
Q2844607 Q2844607 Q4255270
SYSTEM
Amé-Thérèse-Joseph Masclet for 1st, 2nd, Mariano Roca de Togores, 1st Marquis of Molins for 3rd
Q2844607 Q2844607 Q20920104 Q20920104 Q723621 Q16912378 Q5945149 Q11294693 Q723621 Q20666477 Q163042 Q5945149 Q4255270
(c(Q502895),P39,Q1930187) (c(Q502895),P39,Q36180)
action union
action filter_type
action find_reverse
entity Q1930187
relation P39
type Q502895
action filter_type
action find_reverse
entity Q36180
relation P39
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P39', 'Q1930187'] [{'concept': 'Q502895'}, 'P39', 'Q36180']
SELECT DISTINCT ?w WHERE { VALUES ( ?g ) { ( resource:Q36180 ) ( resource:Q1930187 ) } . ?w property:P39 ?g }
Amé-Thérèse-Joseph Masclet Amé-Thérèse-Joseph Masclet Pierre Barthélémy Pierre Barthélémy Paul Nizan Alexandre Melnik José Rocamora Henri de Saint-Ignace Paul Nizan Marina Damestoy David Duke José Rocamora Mariano Roca de Togores, 1st Marquis of Molins
Amé-Thérèse-Joseph Masclet, Amé-Thérèse-Joseph Masclet and Mariano Roca de Togores, 1st Marquis of Molins were responsible for occupying the position of journalist and writer
Amé-Thérèse-Joseph Masclet Amé-Thérèse-Joseph Masclet Mariano Roca de Togores, 1st Marquis of Molins
action union
action filter_type
action find_reverse
entity journalist
relation position held
type common name
action filter_type
action find_reverse
entity writer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'journalist'] [{'concept': 'common name'}, 'position held', 'writer']
SELECT DISTINCT ?w WHERE { VALUES ( ?g ) { ( resource:writer ) ( resource:journalist ) } . ?w property:position_held ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2844607
P7
Q502895
USER
Who are Amé-Thérèse-Joseph Masclet a sibling of ?
(Q2844607,P7,c(Q502895))
action filter_type
action find
entity Q2844607
relation P7
type Q502895
['Q2844607', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q2844607 property:P7 ?o }
Amé-Thérèse-Joseph Masclet
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation brother
type common name
['Amé-Thérèse-Joseph Masclet', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Amé-Thérèse-Joseph_Masclet property:brother ?o }
[]
common name
Q26821175 Q26721517 Q11717210
SYSTEM
Jean-Pierre-Joseph Masclet, Hippolyte Masclet, Jean-Baptiste Masclet
Q26821175 Q26721517 Q11717210
(Q2844607,P7,c(Q502895))
action filter_type
action find
entity Q2844607
relation P7
type Q502895
[ANSWERS] are Amé-Thérèse-Joseph Masclet a sibling of
['Q2844607', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q2844607 property:P7 ?o }
Jean-Pierre-Joseph Masclet Hippolyte Masclet Jean-Baptiste Masclet
Jean-Pierre-Joseph Masclet, Hippolyte Masclet and Jean-Baptiste Masclet are Amé-Thérèse-Joseph Masclet a sibling of
Jean-Pierre-Joseph Masclet Hippolyte Masclet Jean-Baptiste Masclet
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation brother
type common name
['Amé-Thérèse-Joseph Masclet', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Amé-Thérèse-Joseph_Masclet property:brother ?o }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2635694
Q502895
USER
And what about Mikołaj II Radziwiłł?
(Q2635694,P7,c(Q502895))
action filter_type
action find
entity Q2635694
relation P7
type Q502895
['Q2635694', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q2635694 property:P7 ?d . ?d rdf:type ontology:Q502895 }
Mikołaj II Radziwiłł
action filter_type
action find
entity Mikołaj II Radziwiłł
relation brother
type common name
['Mikołaj II Radziwiłł', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Mikołaj_II_Radziwiłł property:brother ?d . ?d rdf:type ontology:common_name }
[]
common name
Q3273286 Q3917290 Q1392402
SYSTEM
Jan Radziwiłł, Wojciech Radziwiłł, Jerzy Radziwiłł
Q3273286 Q3917290 Q1392402
(Q2635694,P7,c(Q502895))
action filter_type
action find
entity Q2635694
relation P7
type Q502895
[ANSWERS]
['Q2635694', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q2635694 property:P7 ?d . ?d rdf:type ontology:Q502895 }
Jan Radziwiłł Wojciech Radziwiłł Jerzy Radziwiłł
Jan Radziwiłł Wojciech Radziwiłł Jerzy Radziwiłł
action filter_type
action find
entity Mikołaj II Radziwiłł
relation brother
type common name
['Mikołaj II Radziwiłł', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Mikołaj_II_Radziwiłł property:brother ?d . ?d rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18965749 Q11717210
P19 P17
Q15617994
USER
Which administrative territories are the birthplace of Jean-Baptiste Masclet or are Braam a part of ?
OR((Q11717210,P19,c(Q15617994)), (Q18965749,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q11717210
relation P19
action find
entity Q18965749
relation P17
type Q15617994
{'OR': [['Q11717210', 'P19', {'concept': 'Q15617994'}], ['Q18965749', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q18965749 property:P17 ?b } UNION { resource:Q11717210 property:P19 ?b } } . ?b rdf:type ontology:Q15617994 }
Braam Jean-Baptiste Masclet
action filter_type
action union
action find
entity Jean-Baptiste Masclet
relation place of birth
action find
entity Braam
relation country
type designation for an administrative territorial entity
{'OR': [['Jean-Baptiste Masclet', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Braam', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Braam property:country ?b } UNION { resource:Jean-Baptiste_Masclet property:place_of_birth ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q55
SYSTEM
France, Netherlands
Q142 Q55
OR((Q11717210,P19,c(Q15617994)), (Q18965749,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q11717210
relation P19
action find
entity Q18965749
relation P17
type Q15617994
[ANSWERS] are the birthplace of Jean-Baptiste Masclet or are Braam a part of
{'OR': [['Q11717210', 'P19', {'concept': 'Q15617994'}], ['Q18965749', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q18965749 property:P17 ?b } UNION { resource:Q11717210 property:P19 ?b } } . ?b rdf:type ontology:Q15617994 }
France Netherlands
France and Netherlands are the birthplace of Jean-Baptiste Masclet or are Braam a part of
France Netherlands
action filter_type
action union
action find
entity Jean-Baptiste Masclet
relation place of birth
action find
entity Braam
relation country
type designation for an administrative territorial entity
{'OR': [['Jean-Baptiste Masclet', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Braam', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Braam property:country ?b } UNION { resource:Jean-Baptiste_Masclet property:place_of_birth ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q207815
P710
Q15275719
USER
Did those administrative territories particiate in Eurovision Song Contest 1996 ?
(Q207815,P710,Q142) (Q207815,P710,Q55)
action is_in
entity prev_answer
action find
entity Q207815
relation P710
['Q207815', 'P710', 'Q142'] ['Q207815', 'P710', 'Q55']
ASK WHERE { resource:Q207815 property:P710 ?t . VALUES ( ?t ) { ( resource:Q142 ) ( resource:Q55 ) } }
Eurovision Song Contest 1996
action is_in
entity prev_answer
action find
entity Eurovision Song Contest 1996
relation participant
['Eurovision Song Contest 1996', 'participant', 'France'] ['Eurovision Song Contest 1996', 'participant', 'Netherlands']
ASK WHERE { resource:Eurovision_Song_Contest_1996 property:participant ?t . VALUES ( ?t ) { ( resource:France ) ( resource:Netherlands ) } }
[]
recurring event
SYSTEM
YES
(Q207815,P710,Q142) (Q207815,P710,Q55)
action is_in
entity prev_answer
action find
entity Q207815
relation P710
[ANSWER]
['Q207815', 'P710', 'Q142'] ['Q207815', 'P710', 'Q55']
ASK WHERE { resource:Q207815 property:P710 ?t . VALUES ( ?t ) { ( resource:Q142 ) ( resource:Q55 ) } }
Yes
action is_in
entity prev_answer
action find
entity Eurovision Song Contest 1996
relation participant
['Eurovision Song Contest 1996', 'participant', 'France'] ['Eurovision Song Contest 1996', 'participant', 'Netherlands']
ASK WHERE { resource:Eurovision_Song_Contest_1996 property:participant ?t . VALUES ( ?t ) { ( resource:France ) ( resource:Netherlands ) } }
[]