Simple Question (Direct)
Simple Question
Q3015719
P106
Q12737077
USER
Which occupation has Dante Micheli as his/her 's career ?
(Q3015719,P106,c(Q12737077))
action filter_type
action find
entity Q3015719
relation P106
type Q12737077
['Q3015719', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q3015719 property:P106 ?u }
Dante Micheli
action filter_type
action find
entity Dante Micheli
relation occupation
type occupation
['Dante Micheli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Dante_Micheli property:occupation ?u }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q3015719,P106,c(Q12737077))
action filter_type
action find
entity Q3015719
relation P106
type Q12737077
Player [ANSWER] has Dante Micheli as his/her 's career
['Q3015719', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q3015719 property:P106 ?u }
association football player
Player association football player has Dante Micheli as his/her 's career
association football player
action filter_type
action find
entity Dante Micheli
relation occupation
type occupation
['Dante Micheli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Dante_Micheli property:occupation ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3015719
P641
Q349
USER
Which sport was that person a part of ?
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q3015719
relation P641
type Q349
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q349 . resource:Q3015719 property:P641 ?g }
Dante Micheli
action filter_type
action find
entity Dante Micheli
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sport . resource:Dante_Micheli property:sport ?g }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q3015719
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q349 . resource:Q3015719 property:P641 ?g }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Dante Micheli
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sport . resource:Dante_Micheli property:sport ?g }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q351635
P417
Q502895 Q12737077
USER
How many people are the patron saint of greater number of occupations than Stanislaus of Szczepanów ?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q351635
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:P417 ?l . ?l rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ontology:Q502895 . resource:Q351635 property:P417 ?j } } . FILTER ( ?y > ?t ) }
Stanislaus of Szczepanów
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Stanislaus of Szczepanów
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:patron_saint ?l . ?l rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ontology:common_name . resource:Stanislaus_of_Szczepanów property:patron_saint ?j } } . FILTER ( ?y > ?t ) }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q351635
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:P417 ?l . ?l rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ontology:Q502895 . resource:Q351635 property:P417 ?j } } . FILTER ( ?y > ?t ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Stanislaus of Szczepanów
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:patron_saint ?l . ?l rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ontology:common_name . resource:Stanislaus_of_Szczepanów property:patron_saint ?j } } . FILTER ( ?y > ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q369691
P417
Q502895 Q12737077
USER
And what about Saint Ursula?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q369691
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:P417 ?d . ?d rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Q369691 property:P417 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?i > ?l ) }
Saint Ursula
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Ursula
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:patron_saint ?d . ?d rdf:type ontology:common_name . ?b rdf:type ontology:occupation } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Saint_Ursula property:patron_saint ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?i > ?l ) }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q369691
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:P417 ?d . ?d rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Q369691 property:P417 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?i > ?l ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Ursula
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:patron_saint ?d . ?d rdf:type ontology:common_name . ?b rdf:type ontology:occupation } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Saint_Ursula property:patron_saint ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?i > ?l ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3015719
P27
Q15617994
USER
Which administrative territory is Dante Micheli a civilian of ?
(Q3015719,P27,c(Q15617994))
action filter_type
action find
entity Q3015719
relation P27
type Q15617994
['Q3015719', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q3015719 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Dante Micheli
action filter_type
action find
entity Dante Micheli
relation country of citizenship
type designation for an administrative territorial entity
['Dante Micheli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Dante_Micheli property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3015719,P27,c(Q15617994))
action filter_type
action find
entity Q3015719
relation P27
type Q15617994
[ANSWER] is Dante Micheli a civilian of
['Q3015719', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q3015719 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Italy
Italy is Dante Micheli a civilian of
Italy
action filter_type
action find
entity Dante Micheli
relation country of citizenship
type designation for an administrative territorial entity
['Dante Micheli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Dante_Micheli property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q432416 Q369691
P2348
Q3024240
USER
Which former countries did Saint Ursula or Lucius Otho occur ?
OR((Q369691,P2348,c(Q3024240)), (Q432416,P2348,c(Q3024240)))
action filter_type
action union
action find
entity Q369691
relation P2348
action find
entity Q432416
relation P2348
type Q3024240
{'OR': [['Q369691', 'P2348', {'concept': 'Q3024240'}], ['Q432416', 'P2348', {'concept': 'Q3024240'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?x ) { ( resource:Q369691 ) ( resource:Q432416 ) } . ?x property:P2348 ?w } . ?w rdf:type ontology:Q3024240 }
Lucius Otho Saint Ursula
action filter_type
action union
action find
entity Saint Ursula
relation period
action find
entity Lucius Otho
relation period
type former country
{'OR': [['Saint Ursula', 'period', {'concept': 'former country'}], ['Lucius Otho', 'period', {'concept': 'former country'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?x ) { ( resource:Saint_Ursula ) ( resource:Lucius_Otho ) } . ?x property:period ?w } . ?w rdf:type ontology:former_country }
[]
former country
Q2277
SYSTEM
Roman Empire
Q2277
OR((Q369691,P2348,c(Q3024240)), (Q432416,P2348,c(Q3024240)))
action filter_type
action union
action find
entity Q369691
relation P2348
action find
entity Q432416
relation P2348
type Q3024240
[ANSWER] did Saint Ursula or Lucius Otho occur
{'OR': [['Q369691', 'P2348', {'concept': 'Q3024240'}], ['Q432416', 'P2348', {'concept': 'Q3024240'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?x ) { ( resource:Q369691 ) ( resource:Q432416 ) } . ?x property:P2348 ?w } . ?w rdf:type ontology:Q3024240 }
Roman Empire
Roman Empire did Saint Ursula or Lucius Otho occur
Roman Empire
action filter_type
action union
action find
entity Saint Ursula
relation period
action find
entity Lucius Otho
relation period
type former country
{'OR': [['Saint Ursula', 'period', {'concept': 'former country'}], ['Lucius Otho', 'period', {'concept': 'former country'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?x ) { ( resource:Saint_Ursula ) ( resource:Lucius_Otho ) } . ?x property:period ?w } . ?w rdf:type ontology:former_country }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P2348
Q3024240 Q502895
USER
Which former countries did less number of people take place than that former country ?
(c(Q502895),P2348,c(Q3024240))
action less
action find_reverse_tuple_counts
relation P2348
type Q3024240
type Q502895
action count
action filter_type
action find_reverse
entity Q2277
relation P2348
type Q502895
[{'concept': 'Q502895'}, 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?z ) WHERE { ?k property:P2348 ?j . ?j rdf:type ontology:Q3024240 . ?k rdf:type ontology:Q502895 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:P2348 resource:Q2277 . ?o rdf:type ontology:Q502895 } } . FILTER ( ?z < ?x ) }
action less
action find_reverse_tuple_counts
relation period
type former country
type common name
action count
action filter_type
action find_reverse
entity Roman Empire
relation period
type common name
[{'concept': 'common name'}, 'period', {'concept': 'former country'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?z ) WHERE { ?k property:period ?j . ?j rdf:type ontology:former_country . ?k rdf:type ontology:common_name } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:period resource:Roman_Empire . ?o rdf:type ontology:common_name } } . FILTER ( ?z < ?x ) }
[]
former country common name
Q12544
SYSTEM
Byzantine Empire
Q12544
(c(Q502895),P2348,c(Q3024240))
action less
action find_reverse_tuple_counts
relation P2348
type Q3024240
type Q502895
action count
action filter_type
action find_reverse
entity Q2277
relation P2348
type Q502895
Less number of people took the [ANSWER] place than that former country
[{'concept': 'Q502895'}, 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?z ) WHERE { ?k property:P2348 ?j . ?j rdf:type ontology:Q3024240 . ?k rdf:type ontology:Q502895 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:P2348 resource:Q2277 . ?o rdf:type ontology:Q502895 } } . FILTER ( ?z < ?x ) }
Byzantine Empire
Less number of people took the Byzantine Empire place than that former country
Byzantine Empire
action less
action find_reverse_tuple_counts
relation period
type former country
type common name
action count
action filter_type
action find_reverse
entity Roman Empire
relation period
type common name
[{'concept': 'common name'}, 'period', {'concept': 'former country'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?z ) WHERE { ?k property:period ?j . ?j rdf:type ontology:former_country . ?k rdf:type ontology:common_name } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:period resource:Roman_Empire . ?o rdf:type ontology:common_name } } . FILTER ( ?z < ?x ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q332756 Q3015719
P20
Q15617994
USER
Which administrative territories did Dante Micheli or Ruggero Settimo die ?
OR((Q3015719,P20,c(Q15617994)), (Q332756,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q3015719
relation P20
action find
entity Q332756
relation P20
type Q15617994
{'OR': [['Q3015719', 'P20', {'concept': 'Q15617994'}], ['Q332756', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { VALUES ( ?l ) { ( resource:Q332756 ) ( resource:Q3015719 ) } . ?l property:P20 ?m } }
Ruggero Settimo Dante Micheli
action filter_type
action union
action find
entity Dante Micheli
relation place of death
action find
entity Ruggero Settimo
relation place of death
type designation for an administrative territorial entity
{'OR': [['Dante Micheli', 'place of death', {'concept': 'designation for an administrative territorial entity'}], ['Ruggero Settimo', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?l ) { ( resource:Ruggero_Settimo ) ( resource:Dante_Micheli ) } . ?l property:place_of_death ?m } }
[]
designation for an administrative territorial entity
Q6247 Q233
SYSTEM
Mantua, Malta
Q6247 Q233
OR((Q3015719,P20,c(Q15617994)), (Q332756,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q3015719
relation P20
action find
entity Q332756
relation P20
type Q15617994
Dante Micheli or Ruggero Settimo died in [ANSWERS]
{'OR': [['Q3015719', 'P20', {'concept': 'Q15617994'}], ['Q332756', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { VALUES ( ?l ) { ( resource:Q332756 ) ( resource:Q3015719 ) } . ?l property:P20 ?m } }
Mantua Malta
Dante Micheli or Ruggero Settimo died in Mantua and Malta
Mantua Malta
action filter_type
action union
action find
entity Dante Micheli
relation place of death
action find
entity Ruggero Settimo
relation place of death
type designation for an administrative territorial entity
{'OR': [['Dante Micheli', 'place of death', {'concept': 'designation for an administrative territorial entity'}], ['Ruggero Settimo', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?l ) { ( resource:Ruggero_Settimo ) ( resource:Dante_Micheli ) } . ?l property:place_of_death ?m } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1016
P17
Q15617994 Q62447 Q3914
USER
How many administrative territories are approximately the same number of aerodromes or schools situated in as Libya ?
(c(Q62447)|c(Q3914),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3914
action count
action filter_multi_types
action find_reverse
entity Q1016
relation P17
type Q62447
type Q3914
[[{'concept': 'Q62447'}, {'concept': 'Q3914'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) ?c WHERE { { ?e property:P17 ?c . ?c rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q62447 } UNION { ?e property:P17 ?c . ?c rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q3914 } } GROUP BY ?c } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { ?m property:P17 resource:Q1016 . { VALUES ( ?y ) { ( ontology:Q62447 ) ( ontology:Q3914 ) } . ?m rdf:type ?y } } } }
Libya
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type school
action count
action filter_multi_types
action find_reverse
entity Libya
relation country
type aerodrome
type school
[[{'concept': 'aerodrome'}, {'concept': 'school'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) ?c WHERE { { ?e property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:aerodrome } UNION { ?e property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:school } } GROUP BY ?c } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { ?m property:country resource:Libya . { VALUES ( ?y ) { ( ontology:aerodrome ) ( ontology:school ) } . ?m rdf:type ?y } } } }
[]
designation for an administrative territorial entity aerodrome school
SYSTEM
232
Q702 Q804 Q801 Q800 Q1256 Q709 Q398 Q805 Q339952 Q419 Q270508 Q668 Q684030 Q2172530 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q784 Q265 Q214 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q717 Q837 Q565812 Q187035 Q252 Q399 Q1462 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q517333 Q796 Q794 Q954 Q889 Q2001966 Q326029 Q884 Q958 Q881 Q986 Q219 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q736 Q153136 Q1210 Q33 Q921 Q31 Q924 Q36 Q34 Q928 Q155019 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q836 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q47261 Q96 Q229 Q347 Q1050 Q977 Q17 Q704288 Q10957559 Q902 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q389004 Q754 Q750 Q212 Q213 Q211 Q217 Q1013 Q215 Q218 Q160307 Q164092 Q37 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q29 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q869 Q426025 Q953
(c(Q62447)|c(Q3914),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3914
action count
action filter_multi_types
action find_reverse
entity Q1016
relation P17
type Q62447
type Q3914
[ANSWER]
[[{'concept': 'Q62447'}, {'concept': 'Q3914'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) ?c WHERE { { ?e property:P17 ?c . ?c rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q62447 } UNION { ?e property:P17 ?c . ?c rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q3914 } } GROUP BY ?c } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { ?m property:P17 resource:Q1016 . { VALUES ( ?y ) { ( ontology:Q62447 ) ( ontology:Q3914 ) } . ?m rdf:type ?y } } } }
Federated States of Micronesia Panama Israel Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Peru Andora India Principality of Serbia Electorate of Württemberg Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Dominica Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Indonesia Armenia Sardinia Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Principality of Polotsk Iraq Iran Zimbabwe Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Vietnam Eritrea Bulgaria Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Ecuador Habsburg Empire Lombardy Finland Brunei Belgium Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Anjou Cambodia Suriname Lazio Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Myanmar Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Mexico Cyprus Liechtenstein Swaziland Djibouti Japan Duchy of Holstein Moldavia Bangladesh Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Wallachia Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Lesotho Slovenia Romania Fatimid caliphate Duchy of Saxony Lithuania Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia Spain East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Thailand Duchy of Savoy Zambia
232
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type school
action count
action filter_multi_types
action find_reverse
entity Libya
relation country
type aerodrome
type school
[[{'concept': 'aerodrome'}, {'concept': 'school'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) ?c WHERE { { ?e property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:aerodrome } UNION { ?e property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:school } } GROUP BY ?c } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { ?m property:country resource:Libya . { VALUES ( ?y ) { ( ontology:aerodrome ) ( ontology:school ) } . ?m rdf:type ?y } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q8575586
P17
Q15617994 Q62447 Q3914
USER
And what about Umayyad Caliphate?
(c(Q62447)|c(Q3914),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3914
action count
action filter_multi_types
action find_reverse
entity Q8575586
relation P17
type Q62447
type Q3914
[[{'concept': 'Q62447'}, {'concept': 'Q3914'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:Q62447 ) ( ontology:Q3914 ) } . ?f rdf:type ?c } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { { ?d rdf:type ontology:Q3914 } UNION { ?d rdf:type ontology:Q62447 } } . ?d property:P17 resource:Q8575586 } } . FILTER ( ?w = ?z ) }
Umayyad Caliphate
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type school
action count
action filter_multi_types
action find_reverse
entity Umayyad Caliphate
relation country
type aerodrome
type school
[[{'concept': 'aerodrome'}, {'concept': 'school'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:aerodrome ) ( ontology:school ) } . ?f rdf:type ?c } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { { ?d rdf:type ontology:school } UNION { ?d rdf:type ontology:aerodrome } } . ?d property:country resource:Umayyad_Caliphate } } . FILTER ( ?w = ?z ) }
[]
designation for an administrative territorial entity aerodrome school
SYSTEM
232
Q702 Q804 Q801 Q800 Q1256 Q709 Q398 Q805 Q339952 Q419 Q270508 Q668 Q684030 Q2172530 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q784 Q265 Q214 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q717 Q837 Q565812 Q187035 Q252 Q399 Q1462 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q517333 Q796 Q794 Q954 Q889 Q2001966 Q326029 Q884 Q958 Q881 Q986 Q219 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q736 Q153136 Q1210 Q33 Q921 Q31 Q924 Q36 Q34 Q928 Q155019 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q836 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q47261 Q96 Q229 Q347 Q1050 Q977 Q17 Q704288 Q10957559 Q902 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q389004 Q754 Q750 Q212 Q213 Q211 Q217 Q1013 Q215 Q218 Q160307 Q164092 Q37 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q29 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q869 Q426025 Q953
(c(Q62447)|c(Q3914),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3914
action count
action filter_multi_types
action find_reverse
entity Q8575586
relation P17
type Q62447
type Q3914
[ANSWER]
[[{'concept': 'Q62447'}, {'concept': 'Q3914'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:Q62447 ) ( ontology:Q3914 ) } . ?f rdf:type ?c } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { { ?d rdf:type ontology:Q3914 } UNION { ?d rdf:type ontology:Q62447 } } . ?d property:P17 resource:Q8575586 } } . FILTER ( ?w = ?z ) }
Federated States of Micronesia Panama Israel Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Peru Andora India Principality of Serbia Electorate of Württemberg Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Dominica Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Indonesia Armenia Sardinia Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Principality of Polotsk Iraq Iran Zimbabwe Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Vietnam Eritrea Bulgaria Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Ecuador Habsburg Empire Lombardy Finland Brunei Belgium Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Anjou Cambodia Suriname Lazio Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Myanmar Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Mexico Cyprus Liechtenstein Swaziland Djibouti Japan Duchy of Holstein Moldavia Bangladesh Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Wallachia Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Lesotho Slovenia Romania Fatimid caliphate Duchy of Saxony Lithuania Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia Spain East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Thailand Duchy of Savoy Zambia
232
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type school
action count
action filter_multi_types
action find_reverse
entity Umayyad Caliphate
relation country
type aerodrome
type school
[[{'concept': 'aerodrome'}, {'concept': 'school'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:aerodrome ) ( ontology:school ) } . ?f rdf:type ?c } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { { ?d rdf:type ontology:school } UNION { ?d rdf:type ontology:aerodrome } } . ?d property:country resource:Umayyad_Caliphate } } . FILTER ( ?w = ?z ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q4609871 Q937857
P425 P641
Q349
USER
Which sports have association football player as the associated field of occupation and did 2007–08 Aberdeen F.C. season participate in ?
AND((Q937857,P425,c(Q349)), (Q4609871,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q4609871
relation P641
type Q349
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q4609871', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q349 . resource:Q4609871 property:P641 ?s . resource:Q937857 property:P425 ?s }
2007–08 Aberdeen F.C. season association football player
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity 2007–08 Aberdeen F.C. season
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['2007–08 Aberdeen F.C. season', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sport . resource:2007–08_Aberdeen_F.C._season property:sport ?s . resource:association_football_player property:field_of_this_occupation ?s }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q937857,P425,c(Q349)), (Q4609871,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q4609871
relation P641
type Q349
[ANSWER] have [ANSWER] player as the associated field of occupation and did 2007–08 Aberdeen F.C. season participate in
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q4609871', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q349 . resource:Q4609871 property:P641 ?s . resource:Q937857 property:P425 ?s }
association football
Association football have association football player as the associated field of occupation and did 2007–08 Aberdeen F.C. season participate in
association football
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity 2007–08 Aberdeen F.C. season
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['2007–08 Aberdeen F.C. season', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sport . resource:2007–08_Aberdeen_F.C._season property:sport ?s . resource:association_football_player property:field_of_this_occupation ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q233
P36
Q56061
USER
What is the capital of Malta ?
(Q233,P36,c(Q56061))
action filter_type
action find
entity Q233
relation P36
type Q56061
['Q233', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q233 property:P36 ?g . ?g rdf:type ontology:Q56061 }
Malta
action filter_type
action find
entity Malta
relation capital
type administrative territorial entity
['Malta', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Malta property:capital ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q23800
SYSTEM
Valletta
Q23800
(Q233,P36,c(Q56061))
action filter_type
action find
entity Q233
relation P36
type Q56061
The capital of Malta is [ANSWER]
['Q233', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q233 property:P36 ?g . ?g rdf:type ontology:Q56061 }
Valletta
The capital of Malta is Valletta
Valletta
action filter_type
action find
entity Malta
relation capital
type administrative territorial entity
['Malta', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Malta property:capital ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q502739
Q56061
USER
And how about Marion County?
(Q502739,P36,c(Q56061))
action filter_type
action find
entity Q502739
relation P36
type Q56061
['Q502739', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q502739 property:P36 ?k }
Marion County
action filter_type
action find
entity Marion County
relation capital
type administrative territorial entity
['Marion County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Marion_County property:capital ?k }
[]
administrative territorial entity
Q79462
SYSTEM
Hamilton
Q79462
(Q502739,P36,c(Q56061))
action filter_type
action find
entity Q502739
relation P36
type Q56061
[ANSWER]
['Q502739', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q502739 property:P36 ?k }
Hamilton
Hamilton
action filter_type
action find
entity Marion County
relation capital
type administrative territorial entity
['Marion County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Marion_County property:capital ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q23800
P740
Q43229
USER
Which organization was formed at Valletta ?
(c(Q43229),P740,Q23800)
action filter_type
action find_reverse
entity Q23800
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q23800']
SELECT DISTINCT ?w WHERE { ?w property:P740 resource:Q23800 . ?w rdf:type ontology:Q43229 }
Valletta
action filter_type
action find_reverse
entity Valletta
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Valletta']
SELECT DISTINCT ?w WHERE { ?w property:location_of_formation resource:Valletta . ?w rdf:type ontology:organization }
[]
organization
Q2527888
SYSTEM
Virtu Ferries
Q2527888
(c(Q43229),P740,Q23800)
action filter_type
action find_reverse
entity Q23800
relation P740
type Q43229
[ANSWER] was formed at Valletta
[{'concept': 'Q43229'}, 'P740', 'Q23800']
SELECT DISTINCT ?w WHERE { ?w property:P740 resource:Q23800 . ?w rdf:type ontology:Q43229 }
Virtu Ferries
Virtu Ferries was formed at Valletta
Virtu Ferries
action filter_type
action find_reverse
entity Valletta
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Valletta']
SELECT DISTINCT ?w WHERE { ?w property:location_of_formation resource:Valletta . ?w rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2527888
P159
Q56061
USER
Which administrative territory is the head office of that organization ?
(Q2527888,P159,c(Q56061))
action filter_type
action find
entity Q2527888
relation P159
type Q56061
['Q2527888', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q2527888 property:P159 ?a . ?a rdf:type ontology:Q56061 }
Virtu Ferries
action filter_type
action find
entity Virtu Ferries
relation headquarters location
type administrative territorial entity
['Virtu Ferries', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Virtu_Ferries property:headquarters_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q23800
SYSTEM
Valletta
Q23800
(Q2527888,P159,c(Q56061))
action filter_type
action find
entity Q2527888
relation P159
type Q56061
[ANSWER] is the head office of that organization
['Q2527888', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q2527888 property:P159 ?a . ?a rdf:type ontology:Q56061 }
Valletta
Valletta is the head office of that organization
Valletta
action filter_type
action find
entity Virtu Ferries
relation headquarters location
type administrative territorial entity
['Virtu Ferries', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Virtu_Ferries property:headquarters_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]