Simple Question (Direct)
Simple Question
Q3172162
P800
Q838948
USER
What is notable work of Jean Fréour ?
(Q3172162,P800,c(Q838948))
action filter_type
action find
entity Q3172162
relation P800
type Q838948
['Q3172162', 'P800', {'concept': 'Q838948'}]
SELECT DISTINCT ?f WHERE { resource:Q3172162 property:P800 ?f . ?f rdf:type ontology:Q838948 }
Jean Fréour
action filter_type
action find
entity Jean Fréour
relation notable work
type work of art
['Jean Fréour', 'notable work', {'concept': 'work of art'}]
SELECT DISTINCT ?f WHERE { resource:Jean_Fréour property:notable_work ?f . ?f rdf:type ontology:work_of_art }
[]
work of art
Q17518368
SYSTEM
Anne of Brittany
Q17518368
(Q3172162,P800,c(Q838948))
action filter_type
action find
entity Q3172162
relation P800
type Q838948
Notable work of Jean Fréour is called [ANSWER]
['Q3172162', 'P800', {'concept': 'Q838948'}]
SELECT DISTINCT ?f WHERE { resource:Q3172162 property:P800 ?f . ?f rdf:type ontology:Q838948 }
Anne of Brittany
Notable work of Jean Fréour is called Anne of Brittany
Anne of Brittany
action filter_type
action find
entity Jean Fréour
relation notable work
type work of art
['Jean Fréour', 'notable work', {'concept': 'work of art'}]
SELECT DISTINCT ?f WHERE { resource:Jean_Fréour property:notable_work ?f . ?f rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3172162
P1066
Q502895
USER
Which person was the professor of Jean Fréour ?
(Q3172162,P1066,c(Q502895))
action filter_type
action find
entity Q3172162
relation P1066
type Q502895
['Q3172162', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3172162 property:P1066 ?w . ?w rdf:type ontology:Q502895 }
Jean Fréour
action filter_type
action find
entity Jean Fréour
relation student of
type common name
['Jean Fréour', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Jean_Fréour property:student_of ?w . ?w rdf:type ontology:common_name }
[]
common name
Q19545079
SYSTEM
Charles Louis Malric
Q19545079
(Q3172162,P1066,c(Q502895))
action filter_type
action find
entity Q3172162
relation P1066
type Q502895
[ANSWER] was the professor of Jean Fréour
['Q3172162', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3172162 property:P1066 ?w . ?w rdf:type ontology:Q502895 }
Charles Louis Malric
Charles Louis Malric was the professor of Jean Fréour
Charles Louis Malric
action filter_type
action find
entity Jean Fréour
relation student of
type common name
['Jean Fréour', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Jean_Fréour property:student_of ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19545079
P170
Q811979
USER
Which works were created by that person ?
(c(Q811979),P170,Q19545079)
action filter_type
action find_reverse
entity Q19545079
relation P170
type Q811979
[{'concept': 'Q811979'}, 'P170', 'Q19545079']
SELECT DISTINCT ?i WHERE { ?i property:P170 resource:Q19545079 . ?i rdf:type ontology:Q811979 }
Charles Louis Malric
action filter_type
action find_reverse
entity Charles Louis Malric
relation creator
type architectural structure
[{'concept': 'architectural structure'}, 'creator', 'Charles Louis Malric']
SELECT DISTINCT ?i WHERE { ?i property:creator resource:Charles_Louis_Malric . ?i rdf:type ontology:architectural_structure }
[]
architectural structure
Q3076013
SYSTEM
fontaine Dejean
Q3076013
(c(Q811979),P170,Q19545079)
action filter_type
action find_reverse
entity Q19545079
relation P170
type Q811979
[ANSWER] was created by that person
[{'concept': 'Q811979'}, 'P170', 'Q19545079']
SELECT DISTINCT ?i WHERE { ?i property:P170 resource:Q19545079 . ?i rdf:type ontology:Q811979 }
fontaine Dejean
Fontaine Dejean was created by that person
fontaine Dejean
action filter_type
action find_reverse
entity Charles Louis Malric
relation creator
type architectural structure
[{'concept': 'architectural structure'}, 'creator', 'Charles Louis Malric']
SELECT DISTINCT ?i WHERE { ?i property:creator resource:Charles_Louis_Malric . ?i rdf:type ontology:architectural_structure }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1180332
P137
Q4830453 Q811979
USER
Which business enterprises operate greater number of architectural structures than MÁV START Zrt. ?
(c(Q811979),P137,c(Q4830453))
action greater
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q811979
action count
action filter_type
action find
entity Q1180332
relation P137
type Q4830453
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P137 ?e . ?q rdf:type ontology:Q811979 . ?e rdf:type ontology:Q4830453 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:Q4830453 . resource:Q1180332 property:P137 ?o } } . FILTER ( ?p > ?t ) }
MÁV START Zrt.
action greater
action find_reverse_tuple_counts
relation operator
type business enterprise
type architectural structure
action count
action filter_type
action find
entity MÁV START Zrt.
relation operator
type business enterprise
[{'concept': 'architectural structure'}, 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:operator ?e . ?q rdf:type ontology:architectural_structure . ?e rdf:type ontology:business_enterprise } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:business_enterprise . resource:MÁV_START_Zrt. property:operator ?o } } . FILTER ( ?p > ?t ) }
[]
business enterprise architectural structure
Q158276 Q20438616 Q378181
SYSTEM
AEG, KMKK Középkelet-magyarországi Közlekedési Központ, Chemins de fer du Midi
Q20438616 Q378181 Q158276 Q2990097
(c(Q811979),P137,c(Q4830453))
action greater
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q811979
action count
action filter_type
action find
entity Q1180332
relation P137
type Q4830453
[ANSWERS] operate greater number of architectural structures than MÁV START Zrt.
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P137 ?e . ?q rdf:type ontology:Q811979 . ?e rdf:type ontology:Q4830453 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:Q4830453 . resource:Q1180332 property:P137 ?o } } . FILTER ( ?p > ?t ) }
KMKK Középkelet-magyarországi Közlekedési Központ Chemins de fer du Midi AEG Compagnie du chemin de fer de Bordeaux à La Teste
AEG, KMKK Középkelet-magyarországi Közlekedési Központ and Chemins de fer du Midi operate greater number of architectural structures than MÁV START Zrt.
AEG KMKK Középkelet-magyarországi Közlekedési Központ Chemins de fer du Midi
action greater
action find_reverse_tuple_counts
relation operator
type business enterprise
type architectural structure
action count
action filter_type
action find
entity MÁV START Zrt.
relation operator
type business enterprise
[{'concept': 'architectural structure'}, 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:operator ?e . ?q rdf:type ontology:architectural_structure . ?e rdf:type ontology:business_enterprise } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:business_enterprise . resource:MÁV_START_Zrt. property:operator ?o } } . FILTER ( ?p > ?t ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1539648
P137
Q4830453 Q811979
USER
And what about Gotthardbahn?
(c(Q811979),P137,c(Q4830453))
action greater
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q811979
action count
action filter_type
action find
entity Q1539648
relation P137
type Q4830453
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:P137 ?h . ?h rdf:type ontology:Q4830453 . ?g rdf:type ontology:Q811979 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { resource:Q1539648 property:P137 ?m . ?m rdf:type ontology:Q4830453 } } . FILTER ( ?e > ?r ) }
Gotthardbahn
action greater
action find_reverse_tuple_counts
relation operator
type business enterprise
type architectural structure
action count
action filter_type
action find
entity Gotthardbahn
relation operator
type business enterprise
[{'concept': 'architectural structure'}, 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:operator ?h . ?h rdf:type ontology:business_enterprise . ?g rdf:type ontology:architectural_structure } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { resource:Gotthardbahn property:operator ?m . ?m rdf:type ontology:business_enterprise } } . FILTER ( ?e > ?r ) }
[]
business enterprise architectural structure
Q158276 Q20438616 Q378181
SYSTEM
AEG, KMKK Középkelet-magyarországi Közlekedési Központ, Chemins de fer du Midi
Q20438616 Q378181 Q158276 Q2990097
(c(Q811979),P137,c(Q4830453))
action greater
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q811979
action count
action filter_type
action find
entity Q1539648
relation P137
type Q4830453
[ANSWERS]
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:P137 ?h . ?h rdf:type ontology:Q4830453 . ?g rdf:type ontology:Q811979 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { resource:Q1539648 property:P137 ?m . ?m rdf:type ontology:Q4830453 } } . FILTER ( ?e > ?r ) }
KMKK Középkelet-magyarországi Közlekedési Központ Chemins de fer du Midi AEG Compagnie du chemin de fer de Bordeaux à La Teste
AEG KMKK Középkelet-magyarországi Közlekedési Központ Chemins de fer du Midi
action greater
action find_reverse_tuple_counts
relation operator
type business enterprise
type architectural structure
action count
action filter_type
action find
entity Gotthardbahn
relation operator
type business enterprise
[{'concept': 'architectural structure'}, 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:operator ?h . ?h rdf:type ontology:business_enterprise . ?g rdf:type ontology:architectural_structure } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { resource:Gotthardbahn property:operator ?m . ?m rdf:type ontology:business_enterprise } } . FILTER ( ?e > ?r ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19545079
P21
Q290
USER
Which sex does Charles Louis Malric have ?
(Q19545079,P21,c(Q290))
action filter_type
action find
entity Q19545079
relation P21
type Q290
['Q19545079', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q19545079 property:P21 ?l . ?l rdf:type ontology:Q290 }
Charles Louis Malric
action filter_type
action find
entity Charles Louis Malric
relation gender
type sex
['Charles Louis Malric', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Charles_Louis_Malric property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q19545079,P21,c(Q290))
action filter_type
action find
entity Q19545079
relation P21
type Q290
Charles Louis Malric has a [ANSWER]
['Q19545079', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q19545079 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
Charles Louis Malric has a male
male
action filter_type
action find
entity Charles Louis Malric
relation gender
type sex
['Charles Louis Malric', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Charles_Louis_Malric property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2663004
Q290
USER
And how about Nick Job?
(Q2663004,P21,c(Q290))
action filter_type
action find
entity Q2663004
relation P21
type Q290
['Q2663004', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q2663004 property:P21 ?r . ?r rdf:type ontology:Q290 }
Nick Job
action filter_type
action find
entity Nick Job
relation gender
type sex
['Nick Job', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Nick_Job property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2663004,P21,c(Q290))
action filter_type
action find
entity Q2663004
relation P21
type Q290
[ANSWER]
['Q2663004', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q2663004 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Nick Job
relation gender
type sex
['Nick Job', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Nick_Job property:gender ?r . ?r rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5003035 Q378181
P159
Q56061
USER
Which administrative territories are the headquarter locations of Chemins de fer du Midi or Butterworth & Dickinson ?
OR((Q378181,P159,c(Q56061)), (Q5003035,P159,c(Q56061)))
action filter_type
action union
action find
entity Q378181
relation P159
action find
entity Q5003035
relation P159
type Q56061
{'OR': [['Q378181', 'P159', {'concept': 'Q56061'}], ['Q5003035', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . { { resource:Q378181 property:P159 ?p } UNION { resource:Q5003035 property:P159 ?p } } }
Butterworth & Dickinson Chemins de fer du Midi
action filter_type
action union
action find
entity Chemins de fer du Midi
relation headquarters location
action find
entity Butterworth & Dickinson
relation headquarters location
type administrative territorial entity
{'OR': [['Chemins de fer du Midi', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Butterworth & Dickinson', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . { { resource:Chemins_de_fer_du_Midi property:headquarters_location ?p } UNION { resource:Butterworth_&_Dickinson property:headquarters_location ?p } } }
[]
administrative territorial entity
Q18125 Q90
SYSTEM
Manchester, Paris
Q18125 Q90
OR((Q378181,P159,c(Q56061)), (Q5003035,P159,c(Q56061)))
action filter_type
action union
action find
entity Q378181
relation P159
action find
entity Q5003035
relation P159
type Q56061
[ANSWERS] are the headquarter locations of Chemins de fer du Midi or Butterworth & Dickinson
{'OR': [['Q378181', 'P159', {'concept': 'Q56061'}], ['Q5003035', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . { { resource:Q378181 property:P159 ?p } UNION { resource:Q5003035 property:P159 ?p } } }
Manchester Paris
Manchester and Paris are the headquarter locations of Chemins de fer du Midi or Butterworth & Dickinson
Manchester Paris
action filter_type
action union
action find
entity Chemins de fer du Midi
relation headquarters location
action find
entity Butterworth & Dickinson
relation headquarters location
type administrative territorial entity
{'OR': [['Chemins de fer du Midi', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Butterworth & Dickinson', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . { { resource:Chemins_de_fer_du_Midi property:headquarters_location ?p } UNION { resource:Butterworth_&_Dickinson property:headquarters_location ?p } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
How many ship types have exactly 3 administrative territories as their base harbour ?
(c(Q2235308),P532,c(Q56061))
action count
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?s ) WHERE { ?k rdf:type ontology:Q2235308 . ?w rdf:type ontology:Q56061 . ?k property:P532 ?w } GROUP BY ?k } . FILTER ( ?s = 3 ) }
action count
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?s ) WHERE { ?k rdf:type ontology:ship_type . ?w rdf:type ontology:administrative_territorial_entity . ?k property:port_of_registry ?w } GROUP BY ?k } . FILTER ( ?s = 3 ) }
[]
administrative territorial entity ship type
SYSTEM
1
Q11707059
(c(Q2235308),P532,c(Q56061))
action count
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?s ) WHERE { ?k rdf:type ontology:Q2235308 . ?w rdf:type ontology:Q56061 . ?k property:P532 ?w } GROUP BY ?k } . FILTER ( ?s = 3 ) }
MS Arrow
1
action count
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?s ) WHERE { ?k rdf:type ontology:ship_type . ?w rdf:type ontology:administrative_territorial_entity . ?k property:port_of_registry ?w } GROUP BY ?k } . FILTER ( ?s = 3 ) }
[]