Simple Question (Direct)
Simple Question
Q3365065
P162
Q502895
USER
Which person produced Pari ?
(Q3365065,P162,c(Q502895))
action filter_type
action find
entity Q3365065
relation P162
type Q502895
['Q3365065', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q3365065 property:P162 ?g }
Pari
action filter_type
action find
entity Pari
relation producer
type common name
['Pari', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Pari property:producer ?g }
[]
common name
Q1166019
SYSTEM
Dariush Mehrjui
Q1166019
(Q3365065,P162,c(Q502895))
action filter_type
action find
entity Q3365065
relation P162
type Q502895
[ANSWER] produced Pari
['Q3365065', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q3365065 property:P162 ?g }
Dariush Mehrjui
Dariush Mehrjui produced Pari
Dariush Mehrjui
action filter_type
action find
entity Pari
relation producer
type common name
['Pari', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Pari property:producer ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3365065
P57
Q502895
USER
Which person directed that work of art ?
(Q1166019,P57,c(Q502895))
action filter_type
action find
entity Q3365065
relation P57
type Q502895
['Q1166019', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3365065 property:P57 ?q }
Pari
action filter_type
action find
entity Pari
relation director
type common name
['Dariush Mehrjui', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Pari property:director ?q }
[]
common name
Q1166019
SYSTEM
Dariush Mehrjui
Q1166019
(Q1166019,P57,c(Q502895))
action filter_type
action find
entity Q3365065
relation P57
type Q502895
[ANSWER] directed that work of art
['Q1166019', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3365065 property:P57 ?q }
Dariush Mehrjui
Dariush Mehrjui directed that work of art
Dariush Mehrjui
action filter_type
action find
entity Pari
relation director
type common name
['Dariush Mehrjui', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Pari property:director ?q }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q811430 Q41176 Q838948
USER
Which works of art are a part of around 1 constructions and buildings ?
(c(Q838948),P361,c(Q811430)|c(Q41176))
action approx
action union
action find_tuple_counts
relation P361
type Q838948
type Q811430
action find_tuple_counts
relation P361
type Q838948
type Q41176
value 1
[{'concept': 'Q838948'}, 'P361', [{'concept': 'Q811430'}, {'concept': 'Q41176'}]]
SELECT DISTINCT ?k WHERE { FILTER ( ?a = 1 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?k WHERE { VALUES ( ?l ) { ( ontology:Q811430 ) ( ontology:Q41176 ) } . ?i rdf:type ?l } GROUP BY ?k } }
action approx
action union
action find_tuple_counts
relation part of
type work of art
type construction
action find_tuple_counts
relation part of
type work of art
type building
value 1
[{'concept': 'work of art'}, 'part of', [{'concept': 'construction'}, {'concept': 'building'}]]
SELECT DISTINCT ?k WHERE { FILTER ( ?a = 1 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?k WHERE { VALUES ( ?l ) { ( ontology:construction ) ( ontology:building ) } . ?i rdf:type ?l } GROUP BY ?k } }
[]
construction building work of art
Q20888393 Q7478089 Q10444913
SYSTEM
Hermitage, Jan Willem Pieneman's tomb, Central station drinking fountain
Q7478081 Q7478089 Q10444913 Q20888393 Q170980 Q7478096 Q7478092 Q660876 Q7478103 Q7478108 Q15615112 Q7478099 Q15736021
(c(Q838948),P361,c(Q811430)|c(Q41176))
action approx
action union
action find_tuple_counts
relation P361
type Q838948
type Q811430
action find_tuple_counts
relation P361
type Q838948
type Q41176
value 1
[ANSWERS] are a part of around 1 constructions and buildings
[{'concept': 'Q838948'}, 'P361', [{'concept': 'Q811430'}, {'concept': 'Q41176'}]]
SELECT DISTINCT ?k WHERE { FILTER ( ?a = 1 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?k WHERE { VALUES ( ?l ) { ( ontology:Q811430 ) ( ontology:Q41176 ) } . ?i rdf:type ?l } GROUP BY ?k } }
Thérèse Schwartze's tomb Jan Willem Pieneman's tomb Central station drinking fountain Hermitage obelisk Jan Albregt's tomb Gerardus Frederik Westerman's tomb New Sacristy Everhardus Johannes Potgieter's tomb Klaas Ris' tomb Statue of Richard Grosvenor, Second Marquess of Westminster Piet van Nek's tomb Plastische Kreuzung
Hermitage, Jan Willem Pieneman's tomb and Central station drinking fountain are a part of around 1 constructions and buildings
Hermitage Jan Willem Pieneman's tomb Central station drinking fountain
action approx
action union
action find_tuple_counts
relation part of
type work of art
type construction
action find_tuple_counts
relation part of
type work of art
type building
value 1
[{'concept': 'work of art'}, 'part of', [{'concept': 'construction'}, {'concept': 'building'}]]
SELECT DISTINCT ?k WHERE { FILTER ( ?a = 1 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?k WHERE { VALUES ( ?l ) { ( ontology:construction ) ( ontology:building ) } . ?i rdf:type ?l } GROUP BY ?k } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q20888393
P669
Q34442
USER
Which road is that work of art located on ?
(Q20888393,P669,c(Q34442))
action filter_type
action find
entity Q20888393
relation P669
type Q34442
['Q20888393', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?f WHERE { resource:Q20888393 property:P669 ?f . ?f rdf:type ontology:Q34442 }
Hermitage
action filter_type
action find
entity Hermitage
relation located on street
type road
['Hermitage', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?f WHERE { resource:Hermitage property:located_on_street ?f . ?f rdf:type ontology:road }
[]
road
Clarification for simple ques.
Q10444913
SYSTEM
Did you mean Central station drinking fountain ?
Q20888393 Q7478089 Q10444913
(Q20888393,P669,c(Q34442)) (Q7478089,P669,c(Q34442)) (Q10444913,P669,c(Q34442))
[ANSWER]
['Q20888393', 'P669', {'concept': 'Q34442'}] ['Q7478089', 'P669', {'concept': 'Q34442'}] ['Q10444913', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?f WHERE { resource:Q20888393 property:P669 ?f . ?f rdf:type ontology:Q34442 }
Hermitage Jan Willem Pieneman's tomb Central station drinking fountain
Did you mean Central station drinking fountain ?
Central station drinking fountain
['Hermitage', 'located on street', {'concept': 'road'}] ["Jan Willem Pieneman's tomb", 'located on street', {'concept': 'road'}] ['Central station drinking fountain', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?f WHERE { resource:Hermitage property:located_on_street ?f . ?f rdf:type ontology:road }
[]
Simple Question (Coreferenced)
USER
No, I meant Hermitage. Could you tell me the answer for that?
(Q20888393,P669,c(Q34442))
Q20888393
['Q20888393', 'P669', {'concept': 'Q34442'}]
['Hermitage', 'located on street', {'concept': 'road'}]
[]
Q3042690
SYSTEM
Rochussenstraat
Q3042690
(Q20888393,P669,c(Q34442))
action filter_type
action find
entity Q20888393
relation P669
type Q34442
That work of art is located in [ANSWER]
['Q20888393', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?f WHERE { resource:Q20888393 property:P669 ?f . ?f rdf:type ontology:Q34442 }
Rochussenstraat
That work of art is located in Rochussenstraat
Rochussenstraat
action filter_type
action find
entity Hermitage
relation located on street
type road
['Hermitage', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?f WHERE { resource:Hermitage property:located_on_street ?f . ?f rdf:type ontology:road }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3042690 Q20888393
P669
Q838948
USER
Is Hermitage located on that road ?
(Q20888393,P669,Q3042690)
action is_in
entity Q3042690
action find
entity Q20888393
relation P669
['Q20888393', 'P669', 'Q3042690']
ASK WHERE { resource:Q20888393 property:P669 resource:Q3042690 }
Rochussenstraat Hermitage
action is_in
entity Rochussenstraat
action find
entity Hermitage
relation located on street
['Hermitage', 'located on street', 'Rochussenstraat']
ASK WHERE { resource:Hermitage property:located_on_street resource:Rochussenstraat }
[]
work of art
SYSTEM
YES
(Q20888393,P669,Q3042690)
action is_in
entity Q3042690
action find
entity Q20888393
relation P669
[ANSWER]
['Q20888393', 'P669', 'Q3042690']
ASK WHERE { resource:Q20888393 property:P669 resource:Q3042690 }
Yes
action is_in
entity Rochussenstraat
action find
entity Hermitage
relation located on street
['Hermitage', 'located on street', 'Rochussenstraat']
ASK WHERE { resource:Hermitage property:located_on_street resource:Rochussenstraat }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6440457 Q20888393
P17
Q15617994
USER
Which administrative territories are Hermitage or Kråkerøy present in ?
OR((Q20888393,P17,c(Q15617994)), (Q6440457,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q20888393
relation P17
action find
entity Q6440457
relation P17
type Q15617994
{'OR': [['Q20888393', 'P17', {'concept': 'Q15617994'}], ['Q6440457', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?b property:P17 ?n . VALUES ( ?b ) { ( resource:Q6440457 ) ( resource:Q20888393 ) } } . ?n rdf:type ontology:Q15617994 }
Kråkerøy Hermitage
action filter_type
action union
action find
entity Hermitage
relation country
action find
entity Kråkerøy
relation country
type designation for an administrative territorial entity
{'OR': [['Hermitage', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kråkerøy', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?b property:country ?n . VALUES ( ?b ) { ( resource:Kråkerøy ) ( resource:Hermitage ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q55
SYSTEM
Norway, Netherlands
Q20 Q55
OR((Q20888393,P17,c(Q15617994)), (Q6440457,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q20888393
relation P17
action find
entity Q6440457
relation P17
type Q15617994
Hermitage or Kråkerøy are in [ANSWERS]
{'OR': [['Q20888393', 'P17', {'concept': 'Q15617994'}], ['Q6440457', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?b property:P17 ?n . VALUES ( ?b ) { ( resource:Q6440457 ) ( resource:Q20888393 ) } } . ?n rdf:type ontology:Q15617994 }
Norway Netherlands
Hermitage or Kråkerøy are in Norway and Netherlands
Norway Netherlands
action filter_type
action union
action find
entity Hermitage
relation country
action find
entity Kråkerøy
relation country
type designation for an administrative territorial entity
{'OR': [['Hermitage', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kråkerøy', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?b property:country ?n . VALUES ( ?b ) { ( resource:Kråkerøy ) ( resource:Hermitage ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16470
P710
Q1190554
USER
Did those administrative territories particiate in Normandy landings ?
(Q16470,P710,Q20) (Q16470,P710,Q55)
action is_in
entity prev_answer
action find
entity Q16470
relation P710
['Q16470', 'P710', 'Q20'] ['Q16470', 'P710', 'Q55']
ASK WHERE { resource:Q16470 property:P710 ?o . VALUES ( ?o ) { ( resource:Q20 ) ( resource:Q55 ) } }
Normandy landings
action is_in
entity prev_answer
action find
entity Normandy landings
relation participant
['Normandy landings', 'participant', 'Norway'] ['Normandy landings', 'participant', 'Netherlands']
ASK WHERE { resource:Normandy_landings property:participant ?o . VALUES ( ?o ) { ( resource:Norway ) ( resource:Netherlands ) } }
[]
event
SYSTEM
YES
(Q16470,P710,Q20) (Q16470,P710,Q55)
action is_in
entity prev_answer
action find
entity Q16470
relation P710
[ANSWER]
['Q16470', 'P710', 'Q20'] ['Q16470', 'P710', 'Q55']
ASK WHERE { resource:Q16470 property:P710 ?o . VALUES ( ?o ) { ( resource:Q20 ) ( resource:Q55 ) } }
Yes
action is_in
entity prev_answer
action find
entity Normandy landings
relation participant
['Normandy landings', 'participant', 'Norway'] ['Normandy landings', 'participant', 'Netherlands']
ASK WHERE { resource:Normandy_landings property:participant ?o . VALUES ( ?o ) { ( resource:Norway ) ( resource:Netherlands ) } }
[]