Simple Question (Direct)
Simple Question
Q3185943
P69
Q41176
USER
Which building is the alma mater of Josette Rey-Debove ?
(Q3185943,P69,c(Q41176))
action filter_type
action find
entity Q3185943
relation P69
type Q41176
['Q3185943', 'P69', {'concept': 'Q41176'}]
SELECT DISTINCT ?a WHERE { resource:Q3185943 property:P69 ?a . ?a rdf:type ontology:Q41176 }
Josette Rey-Debove
action filter_type
action find
entity Josette Rey-Debove
relation educated at
type building
['Josette Rey-Debove', 'educated at', {'concept': 'building'}]
SELECT DISTINCT ?a WHERE { resource:Josette_Rey-Debove property:educated_at ?a . ?a rdf:type ontology:building }
[]
building
Q214654
SYSTEM
Sorbonne
Q214654
(Q3185943,P69,c(Q41176))
action filter_type
action find
entity Q3185943
relation P69
type Q41176
[ANSWER] is the alma mater of Josette Rey-Debove
['Q3185943', 'P69', {'concept': 'Q41176'}]
SELECT DISTINCT ?a WHERE { resource:Q3185943 property:P69 ?a . ?a rdf:type ontology:Q41176 }
Sorbonne
Sorbonne is the alma mater of Josette Rey-Debove
Sorbonne
action filter_type
action find
entity Josette Rey-Debove
relation educated at
type building
['Josette Rey-Debove', 'educated at', {'concept': 'building'}]
SELECT DISTINCT ?a WHERE { resource:Josette_Rey-Debove property:educated_at ?a . ?a rdf:type ontology:building }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q214654
P669
Q34442
USER
Where are that building located ?
(Q214654,P669,c(Q34442))
action filter_type
action find
entity Q214654
relation P669
type Q34442
['Q214654', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?y WHERE { resource:Q214654 property:P669 ?y . ?y rdf:type ontology:Q34442 }
Sorbonne
action filter_type
action find
entity Sorbonne
relation located on street
type road
['Sorbonne', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?y WHERE { resource:Sorbonne property:located_on_street ?y . ?y rdf:type ontology:road }
[]
road
Q1356926 Q3452102 Q3447577
SYSTEM
Rue Saint-Jacques, Paris, rue des Écoles, rue Cujas
Q3452102 Q3451578 Q3450306 Q1356926 Q3447577
(Q214654,P669,c(Q34442))
action filter_type
action find
entity Q214654
relation P669
type Q34442
That building are located in [ANSWERS]
['Q214654', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?y WHERE { resource:Q214654 property:P669 ?y . ?y rdf:type ontology:Q34442 }
rue des Écoles rue de la Sorbonne rue Victor-Cousin Rue Saint-Jacques, Paris rue Cujas
That building are located in Rue Saint-Jacques, Paris, rue des Écoles and rue Cujas
Rue Saint-Jacques, Paris rue des Écoles rue Cujas
action filter_type
action find
entity Sorbonne
relation located on street
type road
['Sorbonne', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?y WHERE { resource:Sorbonne property:located_on_street ?y . ?y rdf:type ontology:road }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3441426 Q214654
P17
Q15617994
USER
Which administrative territories are Sorbonne or Ingulssjøhøi located in ?
OR((Q214654,P17,c(Q15617994)), (Q3441426,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q214654
relation P17
action find
entity Q3441426
relation P17
type Q15617994
{'OR': [['Q214654', 'P17', {'concept': 'Q15617994'}], ['Q3441426', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { ?v property:P17 ?p . VALUES ( ?v ) { ( resource:Q214654 ) ( resource:Q3441426 ) } } . ?p rdf:type ontology:Q15617994 }
Ingulssjøhøi Sorbonne
action filter_type
action union
action find
entity Sorbonne
relation country
action find
entity Ingulssjøhøi
relation country
type designation for an administrative territorial entity
{'OR': [['Sorbonne', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ingulssjøhøi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { ?v property:country ?p . VALUES ( ?v ) { ( resource:Sorbonne ) ( resource:Ingulssjøhøi ) } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q20
SYSTEM
France, Norway
Q142 Q20
OR((Q214654,P17,c(Q15617994)), (Q3441426,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q214654
relation P17
action find
entity Q3441426
relation P17
type Q15617994
Sorbonne or Ingulssjøhøi are located in [ANSWERS]
{'OR': [['Q214654', 'P17', {'concept': 'Q15617994'}], ['Q3441426', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { ?v property:P17 ?p . VALUES ( ?v ) { ( resource:Q214654 ) ( resource:Q3441426 ) } } . ?p rdf:type ontology:Q15617994 }
France Norway
Sorbonne or Ingulssjøhøi are located in France and Norway
France Norway
action filter_type
action union
action find
entity Sorbonne
relation country
action find
entity Ingulssjøhøi
relation country
type designation for an administrative territorial entity
{'OR': [['Sorbonne', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ingulssjøhøi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { ?v property:country ?p . VALUES ( ?v ) { ( resource:Sorbonne ) ( resource:Ingulssjøhøi ) } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3441426
P17
Q15617994
USER
How many administrative territories are Ingulssjøhøi situated in ?
(Q3441426,P17,c(Q15617994))
action count
action filter_type
action find
entity Q3441426
relation P17
type Q15617994
['Q3441426', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q3441426 property:P17 ?d }
Ingulssjøhøi
action count
action filter_type
action find
entity Ingulssjøhøi
relation country
type designation for an administrative territorial entity
['Ingulssjøhøi', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ingulssjøhøi property:country ?d }
[]
designation for an administrative territorial entity
SYSTEM
1
Q20
(Q3441426,P17,c(Q15617994))
action count
action filter_type
action find
entity Q3441426
relation P17
type Q15617994
[ANSWER]
['Q3441426', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q3441426 property:P17 ?d }
Norway
1
action count
action filter_type
action find
entity Ingulssjøhøi
relation country
type designation for an administrative territorial entity
['Ingulssjøhøi', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ingulssjøhøi property:country ?d }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q15617994 Q166142 Q15416
USER
Which administrative territories are atleast 64 applications or television programs set in ?
(c(Q166142)|c(Q15416),P840,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
value 64
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?i ) WHERE { { ?d property:P840 ?u . ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q166142 } UNION { ?d property:P840 ?u . ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15416 } } GROUP BY ?u } . FILTER ( ?i >= 64 ) }
action atleast
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
value 64
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?i ) WHERE { { ?d property:narrative_location ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:application } UNION { ?d property:narrative_location ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:television_program } } GROUP BY ?u } . FILTER ( ?i >= 64 ) }
[]
designation for an administrative territorial entity application television program
Q38 Q155 Q159
SYSTEM
Italy, Brazil, Russia
Q142 Q145 Q159 Q155 Q38 Q96 Q17
(c(Q166142)|c(Q15416),P840,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
value 64
64 applications or television programs are set in atleast in [ANSWERS]
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?i ) WHERE { { ?d property:P840 ?u . ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q166142 } UNION { ?d property:P840 ?u . ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15416 } } GROUP BY ?u } . FILTER ( ?i >= 64 ) }
France United Kingdom Russia Brazil Italy Mexico Japan
64 applications or television programs are set in atleast in Italy, Brazil and Russia
Italy Brazil Russia
action atleast
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
value 64
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?i ) WHERE { { ?d property:narrative_location ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:application } UNION { ?d property:narrative_location ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:television_program } } GROUP BY ?u } . FILTER ( ?i >= 64 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
How many administrative territories have diplomatic relationships with atleast 29 political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 29
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) ?t WHERE { { ?l property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } UNION { ?t rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 . ?l property:P530 ?t } } GROUP BY ?t } . FILTER ( ?p >= 29 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 29
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) ?t WHERE { { ?l property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:diplomatic_relation ?t } } GROUP BY ?t } . FILTER ( ?p >= 29 ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
4
Q159 Q155 Q30 Q38
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 29
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) ?t WHERE { { ?l property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } UNION { ?t rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 . ?l property:P530 ?t } } GROUP BY ?t } . FILTER ( ?p >= 29 ) }
Russia Brazil United States of America Italy
4
action count
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 29
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) ?t WHERE { { ?l property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:diplomatic_relation ?t } } GROUP BY ?t } . FILTER ( ?p >= 29 ) }
[]